C Programming & Data Structures

89 articles in this topic

Pointers in C: Addresses, Arrays and Functions with Worked Examples

Build a practical pointer model with runnable C programs for dereferencing, arrays, swapping, dynamic memory and common tracing questions.

Updated 30 Oct 20265 min read61 viewsC Programming & Data Structures

Pointers and Arrays in C: Decay, Indexing and Worked Examples

Separate arrays from pointers with runnable traces covering indexing, one-past boundaries, function parameters, two-dimensional arrays and declaration traps.

Updated 30 Oct 20265 min read57 viewsC Programming & Data Structures

Function Pointers in C: Declarations, Callbacks and Runnable Examples

Learn to read function-pointer declarations, build a callback dispatch table, guard invalid selections, and write a safe qsort comparator in C.

Updated 23 Sep 20266 min read72 viewsC Programming & Data Structures

Call by Value, Address and Reference: C and C++ Worked Examples

Learn what C actually copies during a function call, how pointers still change caller-owned data, and where C++ references differ. Every case is traced to its final value.

Updated 30 Oct 20266 min read93 viewsC Programming & Data Structures

C Language Concepts Explained: A Worked Program from Variables to Pointers

Follow a small C program from its declarations to its final output. The trace connects expressions, loops, functions, arrays and pointer behaviour step by step.

Updated 21 Sep 20266 min readC Programming & Data Structures

C Structures: Declaration, Initialization and Union Comparison with Worked Examples

Learn what a structure declaration creates, how each initializer form behaves, and why a union makes a different storage promise. Worked traces cover pointers, copying, padding and tagged unions.

Updated 19 Sep 20265 min read57 viewsC Programming & Data Structures

Basic Recursion in C: Call Stack, Worked Traces and Exam Patterns

Learn how recursive C functions descend, stop and unwind. Trace factorial and printed output, count Fibonacci calls, and compare recursion with iteration.

Updated 18 Sep 20265 min readC Programming & Data Structures

Array Basics in C: Indexing, Memory Layout and Worked Exam Traces

C arrays become much easier once indices, addresses, loop bounds, and mutations are kept separate. Build that model with two complete traces and common-error checks.

Updated 16 Sep 20266 min read88 viewsC Programming & Data Structures

C Programming Mixed-Concept Questions Explained: Arrays, Pointers, Functions and Output Tracing

Learn a four-pass method for tracing C programs that combine arrays, pointer aliases, function calls, static storage and side effects, with a complete worked output trace.

Updated 15 Sep 20266 min readC Programming & Data Structures

Storage Classes in C: Worked Examples for Scope, Lifetime, Linkage and GATE Traps

Learn what auto, register, static and extern actually control. Classification tables, two-file code and exact traces turn similar-looking declarations into predictable C behaviour.

Updated 14 Sep 20266 min read105 viewsC Programming & Data Structures

Macros in C Explained: Expansion, Worked Output Traces and Exam Traps

Learn a reliable expand-first method for C macros. Follow exact traces for nested macros, unsafe SQUARE calls, repeated evaluation, token operators and header guards.

Updated 12 Sep 20266 min readC Programming & Data Structures

Enums in C Explained: Values, a Worked Output Trace and Exam Traps

Learn how C assigns enum values, how explicit resets and duplicate constants behave, and how to trace enum-based switch output without missing fall-through.

Updated 11 Sep 20266 min read62 viewsC Programming & Data Structures