C Programming & Data Structures

89 articles in this topic

Storage Classes, Structures and Enums in C: Worked Examples for GATE Output and sizeof Questions

Trace static variables across calls, calculate structure padding byte by byte, compare structures with unions, and follow enum values after an explicit jump.

Updated 21 Aug 20265 min readC Programming & Data Structures

Functions in C Programming: Complete Guide with Worked Examples

Learn how C functions behave in memory, why ordinary swaps fail, how arrays decay, and how recursive calls unwind through clear code traces.

Updated 19 Aug 20266 min readC Programming & Data Structures

Control Flow in C Programming: If-Else, Loops, Switch and Jump Statements with Worked Examples

Learn how C chooses, repeats and redirects execution. Trace common output questions step by step, including do-while, continue, switch fall-through and dangling else.

Updated 17 Aug 20265 min read130 viewsC Programming & Data Structures

Instruction Formats and Expanding Opcode for GATE: Solved Encoding Numericals

Treat every instruction format as a bit budget. A four-level worked example shows exactly how unused opcode patterns expand into the next instruction class.

Updated 30 Oct 20265 min readC Programming & Data Structures

C Programming Fundamentals: Complete Guide with Worked Examples for GATE and Placements

Build a reliable C foundation through traced outputs, pointer arithmetic, function calls, arrays, structures, recursion, and memory allocation.

Updated 13 Aug 20267 min read80 viewsC Programming & Data Structures

Structured Knowledge Representation Models: Semantic Networks, Frames, Scripts and Worked Inheritance

Learn how structured knowledge models store relations, attributes and events. Trace defaults and exceptions through one exact Bird, Penguin and Pingu example.

Updated 11 Aug 20266 min readC Programming & Data Structures

Arrays and Pointers in C: Complete Guide with Worked Examples for GATE and Interviews

Build one clear mental model for C arrays and pointers. Trace addresses, decode tricky expressions, solve a 2D-array numerical, and practise an in-place reversal.

Updated 9 Aug 20266 min read275 viewsC Programming & Data Structures

C Programming for GATE: Syllabus Areas, Weightage Pattern and How to Prepare

Understand where C fits in GATE CS, what exam questions test, and how to build reliable tracing skills through pointers, recursion and structured practice.

Updated 30 Oct 20265 min read341 viewsC Programming & Data Structures

C Programming by Yash Sir: Complete Guide with Worked Examples

Build C from evaluation rules to pointers with worked output traces, a recursion call stack, memory diagrams, common traps, and a clear route into exam and placement practice.

Updated 4 Aug 20267 min readC Programming & Data Structures

Dynamic Memory Allocation in C: malloc, calloc, realloc and the Bugs Exams Test

Follow one resizable integer array from allocation to release. The worked trace explains byte counts, preserved values, uninitialised elements and the safe temporary-pointer pattern.

Updated 1 Aug 20266 min read60 viewsC Programming & Data Structures

Arrays and Strings in C: Array-to-Pointer Decay, sizeof Traps and 2D Address Arithmetic

Learn what an array name means in C, why sizeof changes across a function boundary, and how to calculate 1D and 2D element addresses without guessing.

Updated 30 Jul 20265 min read170 viewsC Programming & Data Structures

Storage Classes in C (auto, static, extern, register): Scope, Lifetime and Exam Questions

Separate scope, lifetime, storage duration and linkage, then use one static-versus-auto program and a two-file extern example to predict exam answers.

Updated 30 Oct 20266 min read83 viewsC Programming & Data Structures