endlendl?output when using <iostream>. endl instead of the alternatives?'\n' and endl are platform-independent when used with <iostream>, ultimately producing the proper character or character sequence for the current operating system. endl is equivalent to '\n' followed by a flush of the output buffer, typically resulting in reduced efficiency.