GATE CSE 2014 SET 2

Опубликовано: 26 Октябрь 2024
на канале: GATE Insights Version: CSE
316
11

Planning to take coaching on Unacademy
http://bit.ly/gate_unacademy
or
https://unacademy.com/
here is a code for 10% off PLUS1BPK1

Telegram Notification Group link:-
https://t.me/joinchat/X5egW_cvdt9kMGY1

Telegram discussion Group link:-
https://t.me/joinchat/VCyGUmVq8RNkMzhl

Downloads resources from here
https://education4fun.com/gate-cse/

MCQ (Single Correct Answer)
GATE CSE 2014 SET 2
For a C program accessing X[i][j][k], the following intermediate code is generated by a compiler. Assume that the size of an integer is 32 bits and the size of a character is 8 bits.
t0 = i ∗ 1024
t1 = j ∗ 32
t2 = k ∗ 4
t3 = t1 + t0
t4 = t3 + t2
t5 = X[t4]
Which one of the following statements about the source code for the C program is CORRECT?(A) X is declared as “int X[32][32][8]”.(B) X is declared as “int X[4][1024][32]”.(C) X is declared as “char X[4][32][8]”.(D) X is declared as “char X[32][16][2]”.