c++ interesting syntax for printing new line in std::cout [duplicate] c++ interesting syntax for printing new line in std::cout [duplicate] arrays arrays

c++ interesting syntax for printing new line in std::cout [duplicate]


" \n" is array of 3 chars. You can index is as normal array. Boolean values implicitly convert to integers: false to 0, true to 1. So it will use '\n' for j == 5 and ' ' if not,