Pointers – Multiple Choice Questions (MCQs)
-
-
14. How do you access the value of the first element of an array 'arr' using a pointer 'ptr' that points to 'arr'?
-
15. What is a pointer to a pointer in C?
-
16. How do you declare a pointer to an integer pointer in C?
-
17. What is the use of a pointer to a pointer?
-
18. What is a function pointer in C?
-
19. How do you declare a function pointer that points to a function taking an integer and returning an integer?
-
20. What is the use of function pointers?
-
21. What is a void pointer in C?
-
22. How do you declare a void pointer in C?
-
23. Why is it necessary to cast a void pointer before dereferencing it?
-
24. What is a dangling pointer in C?