Examveda

What will be the output of the following C++ code?
#include <iostream>
using namespace std;
#define MAX 10
int main()
{
    int num;
    num = ++MAX;
    cout << num;
    return 0;
}

A. 11

B. 10

C. compile time error

D. 13

Answer: Option C


Join The Discussion

Related Questions on Functions and Procedures in C plus plus