Practice ยท 3 of 3
Constant Contract
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.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Macro Mechanics