Finding Errors – Escape Sequences – Computer Sir Ki Class


Solved Problem! #CPP#3164 siteicon   siteicon   siteicon  

Problem Statement - Finding Errors – Escape Sequences

There are some errors in the following code due which the expected output as given below will not come
“C++” is tricky & powerful


TC++ #3164

int main()
cout<<""C++" is tricky & powerful.\n";
return 0;

Test it !


cout<<“C++ is tricky & powerful.\n”;
Special character double quote if required to be printed should be written like escape sequence “.
Also there is extra backslash before n.

this statement should be correctly written as
cout<<“”C++” is tricky & powerful.n”;



sunmitra| Created: 29-Jan-2018 | Updated: 14-Mar-2018|