Arrays and Strings – Multiple Choice Questions (MCQs)
-
-
50. How do you declare an array of 5 integer pointers in C?
-
51. What is the use of an array of pointers to strings?
-
52. What is the difference between a character array and a pointer to a character?
-
53. What is dynamic memory allocation for arrays in C?
-
54. Which standard library function is used to allocate memory dynamically in C?
-
55. Which standard library function is used to deallocate dynamically allocated memory in C?
-
56. What is a potential issue with dynamic memory allocation for arrays if not handled properly?
-
57. What is the purpose of the `calloc()` function in C?
-
58. What is the purpose of the `realloc()` function in C?