my question comes from the following 2 simple line of C++ code:
cout<<"/*";
cout<<"*/";
In my opinion, the comment delimiters /* */ eat the characters "; and cout<<" which is inside of them. So the two lines must be equal to:
cout<<"";
Surprisingly, when I compile and test the code, the program prints:
/**/
It is likely the program recognize comment delimiter as normal characters. How could that be? The code was compiled in gcc-c++-4.7.2.
From the C FAQ.