C Language - Pointers
You Are Here :: Home > C Language > Pointers - General Questions
7. |
Both the indirection operator and the address-of operator |
A. |
must be used in declarations |
B.
|
are binary operators
|
C.
|
are unary operators
|
D.
|
are not overloaded
|
|
Answer: Option C
Explanation:
|
8. |
Adding to a pointer that points to an array will |
A. |
Cause an error |
B.
|
Increase the value of the element that the pointer is pointing to
|
C.
|
Cause the pointer to point to the next element in the array
|
D.
|
None of above
|
|
Answer: Option C
Explanation:
|
9. |
What is dangling pointer in c
|
A. |
if pointer is pointing to a memory location from where variable has been deleted |
B.
|
if pointer is assigned to more than one variable
|
C.
|
if pointer is not defined properly
|
D.
|
none of above
|
|
Answer: Option A
Explanation:
|
10. |
Wild pointer in C |
A. |
if pointer is pointing to a memory location from where variable has been deleted |
B.
|
if pointer has not been initialized
|
C.
|
if pointer has not defined properly
|
D.
|
if pointer pointing to more than one variable
|
|
Answer: Option B
Explanation:
|
11. |
Size of void pointer is
|
A. |
1 byte |
B.
|
2 byte
|
C.
|
4 byte
|
D.
|
8 byte
|
|
Answer: Option B
Explanation:
|
12. |
*ptr++ is equivalent to ?
|
A. |
*ptr |
B.
|
++*ptr
|
C.
|
None of all
|
D.
|
ptr++
|
|
Answer: Option C
Explanation:
|
« previous
...
next »