C
35 articles in this topic

ctype.h Functions in C: Classify Characters and Convert Case Safely
Learn which character test to choose, trace a complete C classifier, and avoid signed-char and EOF mistakes. Worked examples separate classification from case conversion.

Key Features of the C Programming Language: Code Examples
What do C's features actually do in a program? Follow an even-number sum and a pointer update, then test your understanding with small code changes.

Preprocessor and Macros in C: Expansion Rules and Worked Examples
Learn what happens before C compilation, expand object-like and function-like macros by hand, and avoid precedence and repeated-evaluation bugs.

Variables and Data Types in C: Declarations, Conversions and Runnable Examples
Learn how C types control stored values, expressions and I/O. Compile a complete marks program, trace its conversions and repair common type mistakes.

Unions in C: Syntax, Shared Memory and Worked Examples
A C union reuses one storage region for alternative member types, while a separate enum tag keeps each payload read consistent. Safe member switching prevents stale reads, layout mistakes, and character-array errors.

Enums and Typedef in C: Syntax, Worked Examples, and Common Errors
Learn how C enums name integer states and typedef aliases existing types. Trace two complete programs, then avoid collisions, hidden pointers, invalid values, and size assumptions.

Double Pointers in C: Memory Model, Syntax, and Worked Examples
Understand what every level of an int ** means, when a function needs one, and why arrays of pointers differ from 2D arrays. Runnable C17 examples make each step concrete.

C Compilation Model Tutorial: From Source Code to Executable
See what GCC does between a readable C file and a running program. Trace one two-file project through every build stage, diagnose failures, and test your understanding.

Pointer Arithmetic in C: Rules, Worked Examples, and Common Errors
Understand how C pointers move across arrays, where arithmetic is valid, and why one-past pointers are useful but never readable. Includes code, traces, and common traps.

Bitwise Operations in C: Operators, Masks and Worked Examples
Learn C bitwise operators by tracing one unsigned example, then use the same ideas for flags, packed fields, power-of-two checks and set-bit counting.

Storage Classes in C: auto, register, static and extern with Examples
Learn what auto, register, static and extern actually control in C. Trace persistent and fresh objects, then connect two source files without creating duplicate state.

Pointers and Functions in C: Runnable Examples from Swap to Callbacks
Follow one object-and-address model through pointer parameters, arrays, returned pointers, callbacks, and a compact exam trace. Each result is worked out before it is run.