Assignment on UNIT NO.
3
1 .State the meaning of Memory allocation.
2. Define i) Static Memory allocation
ii) Dynamic Memory Allocation
3. State Advantages and Disadvantages of Static Memory Allocation
4. State Advantages and Disadvantages of Dynamic Memory Allocation.
[Link] the purpose and syntax of following functions in c
[Link]() 2. Calloc() 3. Realloc() [Link]()
7. write a program in c to Allocating Memory for an Integer using malloc().
8. write a program in c to Allocating Memory for an Integer array using malloc().
[Link] the need of Typecasting in memory allocation.
10 state the two point difference between static and Dynamic Memory allocation
11. Differentiate between static memory and dynamic memory allocation in any four points.
12. Define Linked list. State the types of Linked List
13. list and explain terminologies of linked list with suitable example
a. Data Field b. Next Pointer. C. Null Pointer d. Empty List
[Link] singly Linked List.
[Link] Doubly Linked List
[Link] Circular Linked List .
17. List the operations performed on Linked list.
18 .write algorithm for following operations
[Link] an element at beginning . [Link] end 3. At any position in linked list
19 write a C program for [Link] an element at beginning . [Link] end 3. At any position in
linked list
20. write algorithm for following operations
[Link] an element at beginning . [Link] end 3. At any position in linked list
21. write a C program for [Link] an element at beginning . [Link] end 3. At any position in
linked list.