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