Programming MCQS - QUESTION DETAILS

How is a single-line comment written in C?
A. // Comment
B. /* Comment */
C. # Comment
D. -- Comment

'//' is used for single-line comments in C.

Similar Questions

What is the output of printf("%d", 5 + 3 * 2);?






How do you achieve multiple inheritance in Java?






What is the purpose of the 'this' keyword in Java?






What is the default value of a boolean variable in Java?






What is the format specifier for printing a float in C?






What is the purpose of the 'sizeof' operator in C?






What is the role of 'calloc' function in C?






What is the purpose of the 'memcpy' function in C?






What is the purpose of the 'strcmp' function in C?






Which function is used to read a character from the standard input in C?