CS-2002 Question Paper With Solutions

Q. 33

Consider the following declaration of a two dimensional array in C:

char a[100][100]a[100][100];

Assuming that the main memory is byte-addressable and that the array is stored starting from memory address 0, the address of a [40][50] is :

(A) 4040
(B) 4050
(C) 5040
(D) 5050

Answer: (B)

Explanation:

CS-2002 Question Paper With Solutions

Learn More:   Gate CS-2018 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here