GKwizard

Which of the following is used for a single-line comment in C?

Answer: Option B

// is used for single-line comments in C since C99.

1
Which of the following is the correct syntax to output 'Hello World' in C?

2
Which header file is required for using the printf function?

3
Which data type is used to store a single character?

4
What will be the output of: printf("%d", 10 + 5 * 2);?

C Programming MCQs Computers and IT
Computer Fundamentals MCQ Operating System MCQs
MS Word MCQs MS Excel MCQs
Database MCQs Data Structures & Algorithms MCQs
Computer Networking MCQs