Dynamic memory allocation in the C language

C and C++ The C language Dynamic memory allocation

This online course of tutorials for the C programming language follows the first C course and reveals further constructs for dynamic memory allocation.

Introduction to pointers in the C language

Lesson 1 - Introduction to pointers in the C language

The tutorial introduces pointers in the C programming language. We'll learn to use the operators * and &.
FreeUnratedWritten by David Capka
Dynamic memory allocation in the C language

Lesson 2 - Dynamic memory allocation in the C language

The tutorial explains the difference between static and dynamic memory allocation. Using malloc() and free() we'll allocate memory for 100 ints at runtime.
FreeUnratedWritten by David Capka
Pointer arithmetic in the C language

Lesson 3 - Pointer arithmetic in the C language

In this tutorial, we'll learn to add integers to pointers and subtract pointers. We'll iterate through dynamic arrays using pointers and indexes.
FreeUnratedWritten by David Capka
Dynamic strings and structures in the C language

Lesson 4 - Dynamic strings and structures in the C language

In this tutorial, we'll learn to allocate strings dynamically exactly that long as we need them. Then we'll focus on passing structures by reference.
FreeUnratedWritten by David Capka
Dynamic arrays (vectors) in the C language

Lesson 5 - Dynamic arrays (vectors) in the C language

In this tutorial, we'll program vector, a dynamic array whose capacity is doubled when it's full. It occupies reasonable space and is not limited in size.
PremiumUnratedWritten by David Capka
Linked lists in the C language

Lesson 6 - Linked lists in the C language

In this tutorial, we'll program Linked list which, similarly to vectors, is unlimited in capacity but has other advantages and also disadvantages.
PremiumUnratedWritten by David Capka
Person database in C - The linked list module

Lesson 7 - Person database in C - The linked list module

We'll practice everything we've learned so far on an actually usable app. In this tutorial, we'll declare structures and prepare a linked list module.
PremiumUnratedWritten by David Capka
Person database in C - Creating persons and application menu

Lesson 8 - Person database in C - Creating persons and application menu

In this C tutorial, we'll finish the implementation of the doubly linked list, prepare a function duplicating dynamic strings and create the main module.
PremiumUnratedWritten by David Capka
Person database in C - Entering and saving persons into CSV

Lesson 9 - Person database in C - Entering and saving persons into CSV

In this C tutorial, we'll add persons to our database and save their data into a text file of the CSV format.
PremiumUnratedWritten by David Capka
Person database in C - Loading and searching persons

Lesson 10 - Person database in C - Loading and searching persons

In this C tutorial, we'll finish our person database. We'll load persons from a CSV file into a linked list and search for people by a part of their name.
PremiumUnratedWritten by David Capka
Advanced memory operations in the C language

Lesson 11 - Advanced memory operations in the C language

In this C tutorial, we'll look at other standard memory functions which the C language provides. We'll also improve our pointer knowledge.
PremiumUnratedWritten by Patrik Valkovic


 

Activities (2)