+ 2

[C++] Why the code run error if un-mark the line 11?

Code as below: https://code.sololearn.com/chs3vFdztces/#cpp the line 11 is same as line 16, why it won't error? and why run error if un-mark the line 11? Could someone explain to me?

5th Jun 2017, 5:26 AM
Ibizaj
Ibizaj - avatar
2 Respostas
+ 6
Hey that should be endl and not end. cout<<*p++<<endl; Line 11.
5th Jun 2017, 5:43 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 1
wow thanks a lot
5th Jun 2017, 5:58 AM
Ibizaj
Ibizaj - avatar