GATE CS 2014 Set-2,Q34:For a C program accessing X[i][j][k], the following intermediate code is

Pubblicato il: 24 maggio 2021
sul canale di: Monalisa CS
2,821
114

GATE CS 2014 Set-2,Q34: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]”.
-------------------------------------------------
Subscribe my channel for more updates    / monalisacs  
----------------------------------------------------------
Join Telegram GATE CS study group: https://t.me/MonalisaCS
----------------------------------------------------------------
Compiler Design Lectures :   • Ch 1.1:Language Processing System |CD Lect...  
----------------------------------------------------------------
Compiler Design PYQ :   • Ch 1.1:Language Processing System |CD Lect...  
----------------------------------------------------------------------
Theory Of Computation Lectures    • Video  
-------------------------------------------------------------------
TOC GATE PYQ:    • GATE CS 2010,Q39:Let L={w ∈ (0 + 1)* | w h...  
-------------------------------------------------------------------
Data Structure Lecture:    • Data Structure Syllabus for GATE  
---------------------------------------------------------------------
Data Structure PYQ:    • Data Structure Syllabus for GATE  
-----------------------------------------------------------------------
#GATE_2014#GATE_CSE#Compiler_Design_PYQ


In questa pagina del sito puoi guardare il video online GATE CS 2014 Set-2,Q34:For a C program accessing X[i][j][k], the following intermediate code is della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Monalisa CS 24 maggio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,821 volte e gli è piaciuto 114 spettatori. Buona visione!