05 09 23 - Class06
05 09 23 - Class06
Programming in C
Tutorial Session 6
Prof. Anupam Basu Siddhant Mohapatra
Dept. of Computer Science & Engg. PMRF Scholar
IIT Kharagpur IIT Madras
05-09-2023
Arrays
An integer array (An integer takes two bytes of memory) of
size 15 is declared in a C program. The memory location of
the first byte of the array is 2000. What will be the location
of the 13th element of the array?
a) 2013
b) 2024
c) 2026
d) 2030
a) 20 12 14
b) 10 20 14
c) 10 12 20
d) Compiler error
a) 3
b) 4
c) No output
a) IIT KGP d) Compilation error
b) IIT MADRAS
c) Nothing is printed
d) Compilation error
a) 5
b) 6
c) 9
d) 10
a) 0
b) 1
c) 5
d) Runtime error