Computer Sciences > GATE 2014 SET-2 > Arrays
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 + t2
t4 = t0 + t3
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""
B
X is declared as ""int X""
C
X is declared as ""char X""
D
X is declared as ""char X""

Correct : a

Similar Questions

Let A be an array containing integer values. The distance of A is defined as the minimum number of elements in A that must be replaced with another integer so t...
#923 Fill in the Blanks
A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From...
#1 MCQ
Which number does not belong in the series below? 2, 5, 10, 17, 26, 37, 50, 64
#4 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......