Assume the following C variable declaration
int *A [10], B [10][10]; |
chevron_right
filter_none
Of the following expressions
I. A [2] II. A [2][3] III. B [1] IV. B [2][3]
which will not give compile-time errors if used as left hand sides of assignment statements in a C program ?
(A) I, II and IV only
(B) II, III and IV only
(C) II and IV only
(D) IV only
Answer: (A)
Explanation: See http://quiz.geeksforgeeks.org/c-arrays-question-6/ for explanation.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
Recommended Posts:
- C | Misc | Question 1
- C | Misc | Question 2
- C | Misc | Question 7
- C | Misc | Question 6
- C | Misc | Question 5
- C | Misc | Question 7
- C | Misc | Question 8
- C | Misc | Question 9
- C++ | Misc C++ | Question 1
- C++ | Misc C++ | Question 2
- C++ | Misc C++ | Question 3
- C++ | Misc C++ | Question 5
- C++ | Misc C++ | Question 6
- C++ | Misc C++ | Question 7
- C++ | Misc C++ | Question 8
- Data Structures | Misc | Question 1
- Data Structures | Misc | Question 2
- Data Structures | Misc | Question 3
- Data Structures | Misc | Question 4
- Data Structures | Misc | Question 5

