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.41Medium

What is the primary purpose of function pointers in C?

Q.42Medium

Which of the following is a valid way to return multiple values from a function in C?

Q.43Medium

What happens if a function is declared but never defined in C?

Q.44Medium

Consider a function that modifies an array passed as a parameter. Which statement is true?

Q.45Medium

What is the purpose of function inlining in modern C compilers?

Q.46Medium

Which of the following demonstrates proper use of the return statement in error handling?

Q.47Medium

A function in C is declared as: int calculate(int *arr, int size). When this function modifies the array elements, what happens to the original array passed from the calling function?