C | Misc | Question 6

Assume the following C variable declaration

filter_none

edit
close

play_arrow

link
brightness_4
code

int *A [10], B [10][10];

chevron_right


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



My Personal Notes arrow_drop_up


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.