Category Archives: C Programming

Chapter 13: Structs

Structures provide a way to group a set of related variables of diverse types into a single unit of memory. The structure as…
Continue reading

Chapter 12: Enumerations

Section 12.1: Simple Enumeration An enumeration is a user-defined data type consists of integral constants and each integral constant is given a name.…
Continue reading

Chapter 11: Linked lists

Section 11.1: A doubly linked list An example of code showing how nodes can be inserted at a doubly linked list, how the…
Continue reading

Chapter 10: Arrays

*p. Arrays are derived data types, representing an ordered collection of values ("elements") of another type. Most arrays in C have a fixed…
Continue reading

Chapter 9: Bit-fields

Parameter                         Description type-specifier signed, unsigned, int or _Bool identifier                             The name for this field in the structure size                     The number of bits…
Continue reading

Chapter 8: Compound Literals

Section 8.1: Definition/Initialisation of Compound Literals A compound literal is an unnamed object which is created in the scope where is defined. The…
Continue reading

Chapter 7: Literals for numbers, characters and strings

Section 7.1: Floating point literals Floating point literals are used to represent signed real numbers. The following suffixes can be used to specify…
Continue reading

Chapter 6: Strings

In C, a string is not an intrinsic type. A C-string is the convention to have a one-dimensional array of characters which is…
Continue reading

Chapter 5: Boolean

Section 5.1: Using stdbool.h Version ≥ C99 Using the system header file stdbool.h allows you to use bool as a Boolean data type.…
Continue reading

Chapter 4: Operators

An operator in a programming language is a symbol that tells the compiler or interpreter to perform a specific mathematical, relational or logical…
Continue reading