Starting from:

$25

CS2110 - Homework 9 - Dynamic Memory - Solved

1.1           Purpose
The purpose of this assignment is to introduce you to dynamic memory allocation in C. You will also learn how to implement a singly-linked list data structure in C.

How do we allocate memory on the heap? How do we de-allocate it when it is no longer used?

1.2           Task
In this assignment, you will be implementing a singly-linked list data structure. Your linked list nodes will have struct data (of type struct user*). You can find details about this struct and the fields it contains in the included list.h file. Your linked list will be able to add, remove, and mutate, and query the data stored within it. You will be writing code in

1.    list.c

2.    main.c

The main.c file is included only for your own testing purposes.

More products