Complete the code to include a header file using the preprocessor directive.
#include [1]stdio.h[2]
The preprocessor directive #include <stdio.h> tells the compiler to include the standard input-output header file.
Complete the code to define a constant using the preprocessor.
#define [1] 100
The #define directive creates a constant named MAX_SIZE with value 100.
Fix the error in the conditional compilation directive.
#if [1] printf("Debug mode\n"); #endif
The #if defined(DEBUG) checks if DEBUG is defined for conditional compilation.
Fill both blanks to create a macro that calculates the square of a number.
#define SQUARE([1]) ([2] * [2])
The macro uses x as the parameter and calculates (x * x) to find the square.
Fill all three blanks to create a macro that returns the maximum of two values.
#define MAX([1], [2]) (([3]) > ([2]) ? ([3]) : ([2]))
The macro uses parameters a and b and compares a with b to return the maximum.