Question
1.
#include
2.
using namespace std;
3.
#define MAX
4.
int main()
5.
{
6.
int num;
7.
num = ++MAX;
8.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
#define MAX
4.
int main()
5.
{
6.
int num;
7.
num = ++MAX;
8.
cout
Answer: Option C
Was this answer helpful ?
:Macro Preprocessor only replaces occurance of macro symbol with macro symbol value,
So we can’t increment the value.
Was this answer helpful ?
Submit Solution