Skip to content
Quiz · Building and the Preprocessor · lesson 3 of 8

Quiz — SQUARE(x + 1)

What does the program print?

C++
#include <iostream>

#define SQUARE(x) x * x

int main() {
    int x = 3;
    std::cout << SQUARE(x + 1) << '\n';
}