00:01
Hello students, so here the few questions are given and we have to choose the answer.
00:06
So first is which type of the memory is allocated for the code below.
00:11
So here int x equal to 1, y equal to 2 and x equal to y.
00:17
So here we are using stack memory.
00:23
Out of the 4 heap memory, stack memory, no memory allocated and here the answer is stack memory.
00:32
So here the variable x and y are the local variable which are stored in the stack memory.
00:38
The stack memory is used to store the temporary data such as function parameter and the local variables.
00:44
When the function returns, the stack memory is cleared and the data is deleted.
00:49
So here i will go with the stack memory.
00:51
So which is stored within the stack memory as we know very well local variables are stored in the stack memories.
00:59
So here local variable, instance variable, string, object, the best answer here is local variables.
01:07
Local variables are stored in the stack memory.
01:10
Other type of the data that are stored in the stack memory include function parameter and the function return values.
01:16
So here in this statement identify the function type of the variable s.
01:22
So as we know very well here student s, new student.
01:25
So as we know very well this is a class type data.
01:30
So here the answer is student.
01:33
So here answer is student...