engineering recuitment NIC NIELIT Scientist B 2023 Mock Test Compiler Design Run Time Environment Storage Allocation
Which of the following statements is true for heap storage?
S1: The heap is the portion of the store that is used for data that lives indefinitely, or until the program explicitly deletes it.
S2: The heap is an area of memory that allows objects or other data elements to obtain storage when they are created and to return that storage when they are invalidated.
1
Only S1
2
Only S2
3
Both S1 and S2
4
Neither S1 nor S2