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.

Updated 5 Oct 20266 min readC

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.

Updated 30 Sep 20266 min readC

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.

Updated 18 Sep 20266 min readC

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.

Updated 17 Sep 20266 min readC

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.

Updated 15 Sep 20265 min readC

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.

Updated 14 Sep 20266 min read60 viewsC

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.

Updated 13 Sep 20266 min read51 viewsC

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.

Updated 11 Sep 20266 min readC

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.

Updated 10 Sep 20266 min read51 viewsC

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.

Updated 8 Sep 20265 min readC

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.

Updated 7 Sep 20266 min readC

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.

Updated 5 Sep 20266 min readC