-
Allocation in stack is faster than heap, because in heap the program has to spend time looking for a place to store the memory
-
Accessing in stack is faster than heap, because in heap the program has to follow the pointer
Allocation in stack is faster than heap, because in heap the program has to spend time looking for a place to store the memory
Accessing in stack is faster than heap, because in heap the program has to follow the pointer