DSSSB TGT 2021
August 6, 2024Compiler-Design
August 7, 2024Compilers
Question 4 |
For the program segment given below, which of the following are true?
program main (output); type link = ^data; data = record d : real; n : link end; var ptr : link; begin new (ptr); ptr:=nil; .ptr^.d:=5.2; write ln(ptr) end.
The program leads to compile time error | |
The program leads to run time error | |
The program outputs 5.2 | |
The program produces error relating to nil pointer dereferencing | |
None of the above |
Question 4 Explanation:
Note: Out of syllabus.
Correct Answer: D
Question 4 Explanation:
Note: Out of syllabus.
Subscribe
Login
0 Comments