iGET

C Programming - MCQ Practice Questions

Practice free C Programming multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.

978 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?