RIP
Tutorial
Tags
Topics
Examples
eBooks
Topics
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
topic.Title
Examples
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
example.Title
Topics
Getting started with C Language
Operators
Arrays
Undefined behavior
Random Number Generation
Preprocessor and Macros
Variable arguments
Files and I/O streams
Assertion
Linked lists
Function Parameters
Pointers
Structs
Command-line arguments
Compilation
Identifier Scope
Bit-fields
Strings
Common pitfalls
Valgrind
Typedef
Standard Math
Literals for numbers, characters and strings
Storage Classes
Declarations
Formatted Input/Output
Inline assembly
Getting started with POSIX
Initialization
Structure Padding and Packing
Memory management
Enumerations
Jump Statements
Create and include header files
Testing frameworks
<ctype.h> — character classification & conversion
Side Effects
Multi-Character Character Sequence
Inlining
Common C programming idioms and developer practices
Interprocess Communication (IPC)
Comments
Examples
Hello World
Assignment Operators
Arithmetic Operators
Logical Operators
Missing return statement in value returning function
Permuted Congruential Generator
Signed integer overflow
Use of an uninitialized variable
Simple Assertion
Static Assertion
Accessing memory beyond allocated chunk
Copying overlapping memory
Conditional Operator/Ternary Operator
sizeof Operator
Access Operators
Using an explicit count argument to determine the length of the va_list
Open and write to file
Simple data structures
Freeing Memory
Allocating Memory
Original "Hello, World!" in K&R C
Common errors
Reallocating Memory
The Linker
File Types
The Preprocessor
The Compiler
Printing the command line arguments
Dereferencing a Pointer to a struct
Predefined Macros
Print the arguments to a program and convert to integer values
Function Prototype Scope
Bit-fields
Simple Enumeration
Bitwise Operators
Modify string literal
Header Include Guards
Mistakenly writing = instead of == when comparing
Get lines from a file using getline()
Forgetting to allocate one extra byte for \0
Forgetting to free memory (memory leaks)
Comparing floating point numbers
Initializing Pointers
Typedef for Structures and Unions
FOREACH implementation
Double precision floating-point remainder: fmod()
Flexible Array Members
Copying strings
Doing extra scaling in pointer arithmetic
Using bit-fields as small integers
Macros are simple string replacements
Same Asterisk, Different Meanings
Undefined reference errors when linking
Printing the Value of a Pointer to an Object
Conversion Specifiers for printing
Passing a null pointer to printf %s conversion
Using character constants instead of string literals, and vice versa
What is POSIX?
Introduction
Using fflush on an input stream
A doubly linked list
Initialization of Variables in C
Initializing structures and arrays of structures
Hello World
Function scope
Function-like macros
Adding a semicolon to a #define
Multidimensional arrays of variable size
Overstepping array boundaries
Using designated initializers
Recursive function — missing out the base condition
Checking logical expression against 'true'
Using return
Bit-field alignment
realloc(ptr, 0) is not equivalent to free(ptr)
Introduction
Idempotence
Self-containment
Minimality
Include What You Use (IWYU)
Notation and Miscellany
CppUTest
Introduction
When are bit-fields useful?
Pre/Post Increment/Decrement operators
Trigraphs
Digraphs
Example of function returning struct containing values with error codes
User-defined memory management
Passing structs to functions
Inlining functions used in more than one source file
Simple Uses of Typedef
Object-based programming using structs
alloca: allocate memory on stack
Length modifiers
Printing format flags
Using terminator values to determine the end of va_list
Implementing functions with a `printf()`-like interface
gcc Inline assembly in macros
Do not leave the parameter list of a function blank — use void
Semaphores
Most common errors encountered while using Valgrind
Typedef for Function Pointers
/* */ delimited comments
// delimited comments
Don'ts for bit-fields
Commenting using the preprocessor
Structure padding
Possible pitfall due to trigraphs
Jonathan Leffler
StackOverflow Profile
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website