59 Topics
Getting started with C Language Introduction Topic
Undefined behavior All Versions
In C, some expressions yield undefined behavior. The standard explicitly chooses to not define how a compiler should behave if it encounters such an expression. As a result, a compiler is free to do whatever it sees fit and may produce useful results, unexpected ...
Common pitfalls All Versions
This section discusses some of the common mistakes that a C programmer should be aware of and should avoid making. For more on some unexpected problems and their causes, please see Undefined behavior
Memory management All Versions
Pointers All Versions
A pointer is a type of variable which can store the address of another object or a function.
Operators All Versions
Assertion All Versions
An assertion is a predicate that the presented condition must be true at the moment the assertion is encountered by the software. Most common are simple assertions, which are validated at execution time. However, static assertions are checked at compile time.
Strings All Versions
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 terminated by a null-character, by a '\0'. This means that a C-string with a content of "abc" will have four characters 'a', 'b', 'c' and...
Preprocessor and Macros All Versions
Compilation All Versions
The C language is traditionally a compiled language (as opposed to interpreted). The C Standard defines translation phases, and the product of applying them is a program image (or compiled program). In c11, the phases are listed in §5.1.1.2.
Arrays All Versions
Arrays are derived data types, representing an ordered collection of values ("elements") of another type. Most arrays in C have a fixed number of elements of any one type, and its representation stores the elements contiguously in memory without gaps or padding. C...
Storage Classes All Versions
Formatted Input/Output All Versions
X-macros All Versions
X-macros are a preprocessor-based technique for minimizing repetitious code and maintaining data / code correspondences. Multiple distinct macro expansions based on a common set of data are supported by representing the whole group of expansions via a single master...
Bitfields All Versions
Function Pointers All Versions
Function pointers are pointers that point to functions instead of data types. They can be used to allow variability in the function that is to be called, at run-time.