New course! Every coder should learn Generative AI!
Try a free lesson+ 1
a=5; cout<<a\n;
Can this statment be used
4 Answers
+ 1
No. a is an int variable and cannot be combined in this way with a string literal.
Use cout<<a<<"\n";
+ 1
Thnks
+ 1
or you could use cout << a << endl;
0
Yaa