C
17 articles in this topic

Command Line Arguments in C: argc and argv Tutorial with Runnable Examples
Learn how argc and argv carry command line input into a C program, then practise argument tracing, numeric conversion, validation, and common fixes.

C Tutorial: The Complete Learning Path from First Program to Pointers and Projects
Learn C in dependency order, from compiling your first program to understanding pointers, allocating memory, reading files, and completing a useful project.

File Handling in C: fopen Modes, fscanf vs fgets and the Predict-the-Output Questions
Trace one text file byte by byte to see what fopen returns, where fscanf stops, why fgets may read a blank line and how to write a correct input loop.

Structures and Unions in C: Padding, Alignment and Worked sizeof Problems for GATE
Calculate structure and union sizes byte by byte, see where padding enters, and learn how member order changes the result.

Functions in C: Call by Value vs Simulated Call by Reference and the Swap Question Family
See why a normal C swap changes only local copies, then trace the pointer version and the aliasing, increment, array, struct, and lifetime traps around it.