Some "hello world"-style data structure objects. Helps with inane tech interview questions and/or teaching computer science - whichever comes first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Charles Reid cf3df633a4 Update 'c/' 5 years ago
.. Update 'c/' 5 years ago
arrays.c updating C array example. 5 years ago
binary_tree.c fix typo in C binary tree. 5 years ago
linked_list.c removing binary tree. 5 years ago

C Data Structures

Linked lists in C can be implemented using structs, which are essentially very primitive objects or data containes.

C allows the user to populate these structs with data, and C takes care of where these are stored in memory.


A simple example that shows the use of arrays in C.

Linked List


The linked list implementation in C utilizes a struct to hold data and a pointer. This implements one struct for linked list nodes, and one struct for the linked list proper.

Binary Tree


This implements a binary tree data structure. There is a lot more functionality that has not been added to the class, so this is a very basic binary tree.