← All tutorials

C Tutorial

Learn C from your first program to pointers, memory management, structures, file handling and low-level bit tricks. Each topic has code, key points and campus interview questions.

15 topics · Beginner → Expert · concept, code, interview questions and a test in every topic

Your progress0%

Beginner lessons

0/4 · 0%
  1. 1Introduction & First ProgramHow C programs are compiled, linked and run.
  2. 2Data Types, Variables & Operatorsint, char, float, double, format specifiers and operators.
  3. 3Control Flow & Loopsif/else, switch, for, while, do-while, break and continue.
  4. 4Functions & RecursionDeclarations, call by value, scope, static and recursion.

Intermediate lessons

0/5 · 0%
  1. 5Arrays & Strings1D/2D arrays, null-terminated strings and string.h.
  2. 6PointersAddresses, dereferencing, pointer arithmetic and arrays.
  3. 7Dynamic Memory: malloc & freeHeap allocation with malloc, calloc, realloc and free.
  4. 8Structures, Unions & EnumsGroup related data and understand padding.
  5. 9Functions Reference: Standard Librarystdio, string, stdlib, math and ctype functions with their use.

Advanced lessons

0/3 · 0%
  1. 10File Handlingfopen, fprintf, fgets, fread/fwrite and error checks.
  2. 11Preprocessor & Macros#define, macros, include guards and conditional compilation.
  3. 12Function Pointers & CallbacksPointers to functions, qsort and arrays of pointers.

Expert lessons

0/3 · 0%
  1. 13Linked Lists in CBuild, insert, delete and reverse a linked list with malloc.
  2. 14Bit ManipulationAND, OR, XOR, shifts and classic bit tricks.
  3. 15Undefined Behaviour & Memory LayoutText/data/BSS/heap/stack, UB traps and debugging tools.
A–Z index

Can't find a C topic you need for exams or placements? Request it and we'll add it.