...
Engineering-Mathematics
October 4, 2023
Compiler-Design
October 4, 2023
Engineering-Mathematics
October 4, 2023
Compiler-Design
October 4, 2023

Programming

Question 50

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?

A
2800
B
2400
C
2000
D
1200
Question 50 Explanation: 
Note: Out of syllabus.
Correct Answer: C
Question 50 Explanation: 
Note: Out of syllabus.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!