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
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
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
Ignoring Files and Folders
Function Pointers
Operators
Getting started with Documentation
Arrays
Undefined behavior
Random Number Generation
Preprocessor and Macros
Variable arguments
Files and I/O streams
Assertion
Linked lists
X-macros
Topics
Function Parameters
Pointers
Structs
Using a .gitattributes file
Sequence points
Command-line arguments
Compilation
Bit-fields
Strings
Common pitfalls
Implicit and Explicit Conversions
Typedef
Selection Statements
Declaration vs Definition
Standard Math
Boolean
Literals for numbers, characters and strings
Storage Classes
Threads
Signals
Sockets
Compiling and Building
Memory management
Iteration Statements/Loops: for, while, do-while
Example order
Enumerations
Jump Statements
Testing frameworks
<ctype.h> — character classification & conversion
Pass 2D-arrays to functions
Side Effects
Multi-Character Character Sequence
Constraints
Inlining
Unions
Code coverage: gcov
Multithreading
Interprocess Communication (IPC)
Comments
Examples
Hello World
Ignoring files and directories with a .gitignore file
Best Practices
Relational Operators
Assignment Operators
Arithmetic Operators
Logical Operators
About Documentation
Declaring and initializing an array
Clearing array contents (zeroing)
Missing return statement in value returning function
Basic Random Number Generation
Permuted Congruential Generator
Compiling with GCC
Use of an uninitialized variable
Conditional inclusion and conditional function signature modification
Source file inclusion
Precondition and Postcondition
Simple Assertion
Static Assertion
Dereferencing a pointer to variable beyond its lifetime
Division by zero
Accessing memory beyond allocated chunk
Copying overlapping memory
Conditional Operator/Ternary Operator
Comma Operator
Pointer Arithmetic
Tokenisation: strtok(), strtok_r() and strtok_s()
Data race
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
Passing in Arrays to Functions
Common errors
Unsequenced expressions
Reallocating Memory
The Preprocessor
Typedef Structs
Introduction
Dereferencing a Pointer
Dereferencing a Pointer to a struct
Iterating Over the Characters in a String
Simple Enumeration
Typedef enum
Bitwise Operators
Define array and access array element
Using incorrect format specifier in printf
Function pointers
Mistakenly writing = instead of == when comparing
Integer Conversions in Function Calls
Forgetting to free memory (memory leaks)
Copying too much
Open and write to a binary file
Pointers to structs
String literals
Address-of Operator ( & )
Using unions to reinterpret values
if () Statements
void* pointers as arguments and return values to standard functions
Understanding Declaration and Definition
Double precision floating-point remainder: fmod()
Flexible Array Members
Copying strings
Hello World
Const Pointers
Using stdbool.h
Using #define
Compiling with Clang
auto
register
Inserting a node at the nth position
Multi-dimensional arrays
Using character constants instead of string literals, and vice versa
Simple Thread without Arguments
Introduction
Raising SIGALARM with the default action
Simple Mutex Usage
Setting signal handler using sigaction and raising signals using raise
Character literals
A process committing suicide using kill()
Code generation
Multi-line comments cannot be nested
Online Compilers
Polymorphic behaviour with void pointers
Multidimensional arrays of variable size
For loop
While loop
Do-While loop
Overstepping array boundaries
Iterating through an array using pointers
Safely convert Strings to Number: strtoX functions
Pinned example
Votes
Defining a bool type using typedef
Using goto to jump out of nested loops
realloc(ptr, 0) is not equivalent to free(ptr)
Passing multidimensional arrays to a function
CppUTest
Introduction
Order of function parameter execution
The Introductory topic
When are bit-fields useful?
Pre/Post Increment/Decrement operators
Trigraphs
Digraphs
Example of function returning struct containing values with error codes
Using flat arrays as 2D arrays
Restrict generation to a given range
User-defined memory management
Unary arithmetic operators
Writing to one union member and reading from another
Inlining functions used in more than one source file
Accepting connections on a blocking socket
Connecting to a remote host
Reading and writing on a blocking socket
Xorshift Generation
Simple Uses of Typedef
Unity Test Framework
Introduction
Compilation
Generate Output
Nested if()...else VS if()..else Ladder
Object-based programming using structs
Read lines from a file
Using a format string
Semaphores
Prefilled .gitattribute Templates
Typedef for Function Pointers
/* */ delimited comments
// delimited comments
Don'ts for bit-fields
Possible pitfall due to trigraphs
CMocka
Toby
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