Pointer MCQs
Practice free Pointer multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 253 questions — no login required.
Question 19easy
What is the purpose of the 'free' function in C when used with pointers?
Question 20easy
In C, what is a pointer to a constant value (const int*)?
Question 21easy
What is the result of the expression ptr-- in C, where ptr is a pointer?
Advertisement
Question 22easy
In C, what is a function pointer?
Question 23easy
What is the result of the expression &array[0] in C, where array is an integer array?
Question 24easy
In C, what is a null pointer (NULL or 0)?
Advertisement
Question 25easy
What is the result of the expression ptr += 2 in C, where ptr is a pointer?
Question 26easy
In C, what is the purpose of the 'calloc' function?
Question 27easy
What is the result of the expression *ptr = 42 in C, where ptr is a pointer to an int?