MCQs
Total Questions : 33
| Page 2 of 4 pages
Answer: Option D. -> Garbage vlaue Garbage Value
Answer: Option B. -> ptr is a pointer to an array of 10 integers
Answer: Option C. -> Address of the first element of the array.
Answer: Option C. -> 65480, 65496
Answer: Option C. -> 10
Answer: Option D. -> 65486, 65486
Answer: Option B. -> 4
Answer: Option A. -> The code is erroneous since the statement declaring array is invalid.
Answer: Option A. -> void fun(int p[][4]){}
Question 20. Which of the following statements are correct about an array?
1. The array int num[26]; can store 26 elements.
2. The expression num[1] designates the very first element in the array.
3. It is necessary to initialize the array at the time of declaration.
4. The declaration num[SIZE] is allowed if SIZE is a macro.
1. The array int num[26]; can store 26 elements.
2. The expression num[1] designates the very first element in the array.
3. It is necessary to initialize the array at the time of declaration.
4. The declaration num[SIZE] is allowed if SIZE is a macro.
Answer: Option B. -> 1, 4