1
In C, what is a pointer primarily used for?
Answer & Solution
Answer: Option
C
2
What is the result of the expression sizeof(int*) in C, assuming an int pointer on a typical system?
Answer & Solution
Answer: Option
A
3
In C, how do you declare a pointer variable that can store the address of an integer?
Answer & Solution
Answer: Option
A
4
What is the purpose of the '->' operator in C when used with pointers?
Answer & Solution
Answer: Option
C
5
In C, what is the value of a pointer variable if it hasn't been assigned any address?
Answer & Solution
Answer: Option
C
6
What is the result of the expression *ptr in C, where ptr is a pointer to an int?
Answer & Solution
Answer: Option
B
7
In C, what is the purpose of the 'void' pointer type (void*)?
Answer & Solution
Answer: Option
A
8
How do you declare a pointer to a function that takes two integers and returns an integer in C?
Answer & Solution
Answer: Option
A
9
What is the result of the expression ptr++ in C, where ptr is a pointer?
Answer & Solution
Answer: Option
C
10
In C, what is the purpose of the 'const' keyword when used with a pointer declaration?
Answer & Solution
Answer: Option
B