Pointer MCQs

253 questionsC-ProgramPage 1 of 29

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 1easy
In C, what is a pointer primarily used for?
Question 2easy
What is the result of the expression sizeof(int*) in C, assuming an int pointer on a typical system?
Question 3easy
In C, how do you declare a pointer variable that can store the address of an integer?
Advertisement
Question 4easy
What is the purpose of the '->' operator in C when used with pointers?
Question 5easy
In C, what is the value of a pointer variable if it hasn't been assigned any address?
Question 6easy
What is the result of the expression *ptr in C, where ptr is a pointer to an int?
Advertisement
Question 7easy
In C, what is the purpose of the 'void' pointer type (void*)?
Question 8easy
How do you declare a pointer to a function that takes two integers and returns an integer in C?
Question 9easy
What is the result of the expression ptr++ in C, where ptr is a pointer?