+ 3
Why the output of this code is | \ / | ?
char arr[4]={'|','\\','/'}; for(int i=0;i<4;i++) cout <<arr[i%3];
1 Odpowiedź
+ 2
Samsil Arefeen because '|' when printed gives |
'\\' when printed gives \ because here single \ is used for escape sequence
'/' when printed gives /
Combined gives | \ / |