Dear Sir,
I am new to c++. I want to know about writng of comments in source code . It has been told that // method of writing requires writing of comment in one line only and it need not be closed in contrast to /* method of writing comments.If by mistake the comment goes beyond one line in // method of commenting.What will happen.
Regards,
SK Arora
If your comment goes beyond 1 line with a // comment, the next line will be considered a piece of code by the compiler and your project will not compile.