Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 33 / 3985%
Advanced Topics4/7

C Macros & Preprocessor

`#define`, `#include`, `#ifdef` — the C preprocessor runs *before* the compiler sees your code.

// before — your source#define SQ(x) ((x) * (x))int y = SQ(3 + 1);preprocessor// after — what compiler seesint y = ((3 + 1) * (3 + 1)); /* y = 16 */
Visual explanation diagram · click steps to walk through it

This lesson is Pro only.

Unlock every premium lesson and module — Pro from ₹299 / month (or ₹999 / year, saves ~₹2,589).

Sign in to unlock
// feedback.matters()
Did this lesson help you?