c++ interesting syntax for printing new line in std::cout [duplicate]
" \n"
is array of 3 char
s. 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,