Practice ยท 3 of 3
Constant Contract
CHALLENGE
Difficulty: beginner+25 XP
Define an object macro SCALE with value 100 and implement int apply_scale(int v) returning v * SCALE. Changing SCALE must change the function โ the tests recompile with a different value through your macro.
Press Submit to check your solution.
Back to lesson: Practice: Macro Mechanics