Write the output of the following:
char *mychar; //points to memory location 1000
short *myshort; //points to memory location 2000
long *mylong; //points to memory location 3000
mychar++;
++myshort;
mylong++;
cout << mychar << myshort << mylong;
Options
- 1001 2001 3001
- 1001 2002 3004
- 1001 2001 3002
- 1001 2001 3004
CORRECT ANSWER : 1001 2002 3004
Write your comments