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 10easy
In C, what is the purpose of the 'const' keyword when used with a pointer declaration?
Question 11easy
What is the result of the expression &variable in C, where variable is a variable of type int?
Question 12easy
In C, what is a double pointer (int**)?
Advertisement
Question 13easy
What is the result of the expression ptr = NULL in C, where ptr is a pointer?
Question 14easy
In C, what is the purpose of the 'malloc' function?
Question 15easy
What is the result of the expression *NULL in C?
Advertisement
Question 16easy
In C, what is the purpose of the 'memcpy' function?
Question 17easy
What is the result of the expression sizeof(char*) in C, assuming a char pointer on a typical system?
Question 18easy
In C, how do you declare an array of pointers to integers?