JP Morgan Interview Question
Software Engineer / DevelopersCountry: United States
Interview Type: In-Person
Stack memory is generally used when allocating variables local to function. It is generally limited and less in size as compared to heap memory. It is allocated/deallocated by the machine, coder need not worry about it.
Heap memory is allocated/ deallocated by the programmer itself using new or delete operators. It has a larger size than stack memory and depends from computer to computer.
It is allocated at the run time as compared to stack memory which is allocated at the compile time
Stack memory is generally used when allocating variables local to function. It is generally limited and less in size as compared to heap memory. It is allocated/deallocated by the machine, coder need not worry about it.
Heap memory is allocated/ deallocated by the programmer itself using new or delete operators. It has a larger size than stack memory and depends from computer to computer.
It is allocated at the run time as compared to stack memory which is allocated at the compile time
Stack memory is generally used when allocating variables local to function. It is generally limited and less in size as compared to heap memory. It is allocated/deallocated by the machine, coder need not worry about it.
Heap memory is allocated/ deallocated by the programmer itself using new or delete operators. It has a larger size than stack memory and depends from computer to computer.
It is allocated at the run time as compared to stack memory which is allocated at the compile time
Stack memory is generally used when allocating variables local to function. It is generally limited and less in size as compared to heap memory. It is allocated/deallocated by the machine, coder need not worry about it.
Heap memory is allocated/ deallocated by the programmer itself using new or delete operators. It has a larger size than stack memory and depends from computer to computer.
It is allocated at the run time as compared to stack memory which is allocated at the compile time
Stack memory is generally used when allocating variables local to function. It is generally limited and less in size as compared to heap memory. It is allocated/deallocated by the machine, coder need not worry about it.
Heap memory is allocated/ deallocated by the programmer itself using new or delete operators. It has a larger size than stack memory and depends from computer to computer.
It is allocated at the run time as compared to stack memory which is allocated at the compile time
Stack memory is generally used when allocating variables local to function. It is generally limited and less in size as compared to heap memory. It is allocated/deallocated by the machine, coder need not worry about it.
Heap memory is allocated/ deallocated by the programmer itself using new or delete operators. It has a larger size than stack memory and depends from computer to computer.
It is allocated at the run time as compared to stack memory which is allocated at the compile time
Stack memory is generally used when allocating variables local to function. It is generally limited and less in size as compared to heap memory. It is allocated/deallocated by the machine, coder need not worry about it.
Heap memory is allocated/ deallocated by the programmer itself using new or delete operators. It has a larger size than stack memory and depends from computer to computer.
It is allocated at the run time as compared to stack memory which is allocated at the compile time
Stack memory is generally used when allocating variables local to function. It is generally limited and less in size as compared to heap memory. It is allocated/deallocated by the machine, coder need not worry about it.
Heap memory is allocated/ deallocated by the programmer itself using new or delete operators. It has a larger size than stack memory and depends from computer to computer.
It is allocated at the run time as compared to stack memory which is allocated at the compile time
Stack memory is generally used when allocating variables local to function. It is generally limited and less in size as compared to heap memory. It is allocated/deallocated by the machine, coder need not worry about it.
- Tom February 24, 2012Heap memory is allocated/ deallocated by the programmer itself using new or delete operators. It has a larger size than stack memory and depends from computer to computer.
It is allocated at the run time as compared to stack memory which is allocated at the compile time