Discussion :: C++ - MCQs
-
What is the output of this program?
#include < iostream >
using namespace std;
#define MAX 10
int main()
{
int num;
num = ++MAX;
cout << num;
return 0;
}
Answer : Option C
Explanation :
Macro Preprocessor only replaces occurance of macro symbol with macro symbol value, So we can't increment the value.
Be The First To Comment