Computer Science, asked by dhruvchandak00, 2 days ago

Implementing a C program to create a student list of a class using Dynamic memory allocation. It will have the details of students as roll number and name. Program should support the following operations (menu driven).
1. Insert
2. Delete
3. Display
use malloc for insert and free for delete

Answers

Answered by p963096
0

Answer:

Sometimes the size of the array you declared may be insufficient. To solve this issue, you can allocate memory manually during run-time. This is known as dynamic memory allocation in C programming.

To allocate memory dynamically, library functions are malloc(), calloc(), realloc() and free() are used. These functions are defined in the <stdlib.h> header file.

Similar questions