Which of these is a valid comment in C?
Correct answer
B. /* comment */
10 views
B. /* comment */
10 views
/* this is a comment */ is a multi-line comment, and // is a single-line comment. Both are ignored by the compiler. Comments are used for documentation and clarity.
Asked in: Matric,FBISE
Not sure why the answer is B? Ask here and get an explanation.