S1: Variables/function calls have nested lifetime in case of stack allocation.
It cannot be true since in stack allocation the variables or functions taking space are automatically deleted.
Nested lifetime means if the variable is allocated space in a function then other nested functions calls can delete that variable which is not true with stack allocation.
So S1 is wrong.
S2: Variables/function calls have arbitrary lifetime in case of heap allocation.
Yes, it can be said that they have arbitrary lifetime because the user can deallocate space anytime and the space allocated needs to be explicitly deallocated.
So, S2 is True.
Correct me if wrong ??????