iGET

C Programming - MCQ Practice Questions

C questions in placement tests and university exams are rarely about syntax alone. Most of what you will find here is output prediction, pointer arithmetic, arrays and strings, structures and unions, storage classes, recursion, and file handling. The explanations walk through memory behaviour step by step, which is usually where the confusion sits rather than in the code itself.

972 questions | 100% Free

Q.281Easy

What does the ## operator in preprocessor do?

Q.282Easy

Which predefined macro gives the line number in the source file?

Q.283Easy

Which header file contains the definition of NULL macro?

Q.284Easy

What does #undef directive do?

Q.285Easy

In C99, which of the following is a valid use of token pasting operator (##)?

Q.286Easy

Which header file is required to use assert() macro in C?

Q.287Easy

What is the difference between #include <file.h> and #include "file.h"?

Q.288Easy

What happens when #if 0...#endif wraps a block of code?

Q.289Easy

What is the purpose of defined() operator in preprocessor conditionals?

Q.290Easy

What is the primary purpose of the C preprocessor?

Q.291Easy

Which directive is used to conditionally compile code based on a logical condition?