From the C ++ standard:
(C ++ 11, 2.2p1) "Each instance of a backslash character (\) immediately followed by a newline character is deleted by splicing the physical source lines to form the logical lines of the source code. Only the last backslash on any physical source line shall be entitled to be part of such a merger. "
C says exactly the same:
(C11, 5.1.1.2 p1) " (\), , , ."
:
if(x==y)\
{
cout<<"x=y"<<endl;
}
:
if(x==y){
cout<<"x=y"<<endl;
}