← All tutorials

Skill Zuno · skillzunos.com · Fullstack

C tutorial

Learn C on Skill Zuno. This C tutorial covers New, Easy, Medium, Hard, and Diff levels so you can study practical C problems on skillzunos.com.

Open C on Skill Zuno

Also see the C interview questions.

C is a small, compiled, procedural language that maps closely to the hardware. Operating systems, embedded firmware, databases and language runtimes are written in it. C interviews focus on pointers, memory management, arrays and strings, structs, the preprocessor and undefined behaviour.

C topics covered

  • Pointers, pointer arithmetic and the address-of operator — How pointers store addresses, and how pointer arithmetic moves through arrays.
  • Arrays, strings and the null terminator — Why C strings end with a zero byte, and safe ways to copy and compare them.
  • malloc, calloc, realloc and free — Allocating memory dynamically, resizing it, and freeing it exactly once.
  • Structs, unions and memory alignment — Grouping data, sharing storage with unions, and why the compiler adds padding.
  • Function pointers and callbacks — Passing functions as arguments for callbacks, dispatch tables and plugins.
  • Storage classes: static, extern, auto and register — Controlling the lifetime and visibility of variables and functions.
  • The preprocessor: macros, include guards and conditional compilation — How the preprocessor transforms code before compilation, and its pitfalls.
  • Undefined behaviour, buffer overflows and memory leaks — The bugs C does not catch for you, and how to find them with sanitizers and Valgrind.

What you can learn

  • C tutorial for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Fullstack topics alongside C on skillzunos.com

More Fullstack tutorials

All tutorials