DMA Dynamic Memory Allocation assignments in C language with explanation and Solutions.
1. Write a program in C programming to dynamically allocate memory for an array of integers and display the sum of all elements.
2. Write a program in C that dynamically allocates memory for a string and reverses the string in place.
3. Write a C language program that dynamically allocates memory for a 2D array and calculates the transpose of the matrix.
4. Write a C program that dynamically allocates memory for a linked list and implements a function to reverse the list.
5. Write a program in C language that dynamically allocates memory for a stack data structure and performs push and pop operations.
6. Write a program in c that dynamically allocates memory for a binary search tree and implements functions to insert and search for elements.
7. Write a c language program to dynamically allocate memory for a queue data structure and implement enqueue and dequeue operations.
8. Write a C program that dynamically allocates memory for a graph data structure and implements functions to add vertices and edges.
9. Write a program in C that dynamically allocates memory for a priority queue and implements functions to insert and extract elements based on priority.