C Programming & Data Structures
25 articles in this topic

Data Types in C Explained: Ranges, Conversions and Worked Exam Examples
Learn how C types control ranges and conversions, then apply the rules to overflow, mixed arithmetic, sizeof and signed-unsigned exam questions.

Character Pointers and Strings in C: Memory Layout, Worked Outputs and Exam Traps
Build a memory-first model for character pointers and C strings. Trace GATE to GITE and CAT to CBT, then check literals, bounds, terminators and capacity.

C Programming for GATE: A 6-Week Topic-by-Topic Plan
Turn C revision into a 48-hour subject sprint. This plan moves from expressions and control flow to pointers, recursion, PYQ review, and timed mixed drills.

Coding Questions for GATE CS: Trace Outputs and Complexity Step by Step
Learn a reliable way to solve coding output and complexity questions. Three fully traced C examples cover loops, mutation, recursion and operation counts.

C Function Basics MCQs: 10 Solved Questions on Prototypes, Calls and Parameters
Solve 10 C function MCQs, then use the explanations to separate declarations, definitions, copied arguments, return values, static locals and scope.

File Handling in C: fopen, Read, Write, Append and Seek with Runnable Examples
Build safe C file workflows with text and binary examples. Write records, total them, append data, seek by byte offset, and handle failures.

Miscellaneous C Programming: Storage Classes, Operators, Type Conversion, Macros and Bitwise, Fully Solved
Learn the C rules behind predict-the-output questions, then apply them to five fully worked patterns covering static storage, precedence, conversions, macros and bits.

Dynamic Memory Allocation, Macros, Scoping and File Handling in C: Worked Examples
Trace four C concepts through code: grow an array without losing ownership, expand macros safely, resolve shadowed names, and process file records by return status.

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.

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.

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.

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.