C/C++ Arena

Step 1 of 5

#define constants

Lines starting with # are handled by the preprocessor before compilation. #define does a text substitution:

#define MAX_ROUNDS 24

Every MAX_ROUNDS in the code is replaced with 24 before the compiler sees it. By convention macro names are UPPERCASE.

Your turn: define TEAM_SIZE as 5 so the program prints 10 players.

Next: Macro pitfalls