0% found this document useful (0 votes)
5 views2 pages

Memory Allocation and Linked Lists in C

The document outlines an assignment on memory allocation and linked lists, covering definitions, advantages, and disadvantages of static and dynamic memory allocation. It includes tasks such as writing C programs for memory allocation and linked list operations, as well as explaining various types of linked lists and their terminologies. Additionally, it requires algorithms for inserting and deleting elements in linked lists.

Uploaded by

rutikingle04
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Memory Allocation and Linked Lists in C

The document outlines an assignment on memory allocation and linked lists, covering definitions, advantages, and disadvantages of static and dynamic memory allocation. It includes tasks such as writing C programs for memory allocation and linked list operations, as well as explaining various types of linked lists and their terminologies. Additionally, it requires algorithms for inserting and deleting elements in linked lists.

Uploaded by

rutikingle04
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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.

You might also like