Why we have only two data structure "stack" and "heap"? like int value will be stored in stack and similarly reference type value will be stored in heap.
Why we cannot use some other data structure? Is there any specific reason to use only two these stack and heap.
Thanks a lot.