Logo F2FInterview

C++ - Data Structures Interview Questions

Q   |   QA
‹‹ previous12345678910 ... 1314

HEAP is used to store dynamically allocated memory (malloc). STACK stores static data (int, const).

The STACK and HEAP are stored "below" the executing program. The HEAP "grows" toward the program executable while the STACK grows away from it.

A double-linked list structure contains one pointer to the previous record in the list and a pointer to the next record in the list plus the record data.

Previous R; Data R; Next R; To insert a record (B) between two others (A and C): Previous.B = A; Next.B = C; Next.A = B; Previous.C = B;

queue

‹‹ previous12345678910 ... 1314

In order to link this F2FInterview's page as Reference on your website or Blog, click on below text area and pres (CTRL-C) to copy the code in clipboard or right click then copy the following lines after that paste into your website or Blog.

Get Reference Link To This Page: (copy below code by (CTRL-C) and paste into your website or Blog)
HTML Rendering of above code: