Friday, April 24, 2020

Escape Sequence in C++

There are some important Escape sequences in C++ :


u\n    
 e.g.  cout<<" Sof \n tech \n";
 //cout<<"sof"<<'\n'<<"tech"<<'\n'; 
u\t
e.g. cout<<"Sof \t tech \n"; 
//cout<<"sof"<<'\t'<<"tech"<<'\n';
u\’
e.g. cout<<"\' Softech \' "<<'\n';
u\”
e.g. cout<<"\" softech \""<<'\n';

No comments:

Post a Comment

Maximum No

//Find the Maximum No between Three Nos' int i=10,o=20,k=30; if(i>o &&i>k) { cout<<"1st is g\n";...