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.

Updated 3 Sep 20266 min readC Programming & Data Structures

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.

Updated 2 Sep 20266 min readC Programming & Data Structures

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.

Updated 31 Aug 20265 min readC Programming & Data Structures

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.

Updated 29 Aug 20265 min readC Programming & Data Structures

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.

Updated 29 Aug 20267 min readC Programming & Data Structures

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.

Updated 26 Aug 20266 min readC Programming & Data Structures

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.

Updated 24 Aug 20265 min readC Programming & Data Structures

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.

Updated 23 Aug 20266 min readC Programming & Data Structures

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 read73 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 15 Aug 20265 min readC Programming & Data Structures