← The C Language
Lesson 63 of 77 · 5 XP
Warm-up: #define warm-up
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
#define gives a name to a value. Before compiling, the preprocessor simply puts the text in place of the name:
#define LIMIT 10
if (n > LIMIT) // becomes: if (n > 10)
printf("big\n");
Task. Declare #define LIMIT 10, read a number and print big if it is greater than LIMIT, otherwise small.
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.