Engineering-Mathematics
October 4, 2023GATE 2018
October 4, 2023Programming
|
Question 7
|
A variant record in Pascal is defined by
type varirec = record
number : integer;
case (var1,var2) of
var1: (x,y : integer);
var2: (p.q.: real)
end
end
Suppose an array of 100 records was declared on a machine which uses 4 bytes for an integer and 8 bytes for a real. How much space would the compiler have to reserve for the array?
|
2800
|
|
|
2400
|
|
|
2000
|
|
|
1200
|
Question 7 Explanation:
Note: Out of syllabus.
Correct Answer: C
Question 7 Explanation:
Note: Out of syllabus.
