Pointers – Multiple Choice Questions (MCQs)
-
-
2. Which operator is used to get the address of a variable in C?
-
3. Which operator is used to dereference a pointer (access the value pointed to by the pointer) in C?
-
4. How do you declare an integer pointer in C?
-
5. What value does an uninitialized pointer typically hold?
-
6. What is the significance of the NULL pointer in C?
-
7. What is pointer arithmetic in C?
-
8. If `int *ptr; int arr[5]; ptr = arr;`, what does `ptr + 1` represent?
-
9. What is the size of a pointer in C (in a typical 32-bit system)?
-
10. What is the size of a pointer to a 'char' in C (in a typical 32-bit system)?
-
11. What is the size of a pointer to an 'int' in C (in a typical 32-bit system)?
-
12. What is the size of a pointer to a 'float' in C (in a typical 32-bit system)?