You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-05-26 06:28:22
Output:
Question:
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;
Option A):
1001 2002 3004
Option B):
1001 2001 3002
Option C):
1001 2002 3004
Option D):
1001 2001 3001
Correct Answer is Option C):
1001 2002 3004
Failure is the first step towards seccess.
Offline
2015-05-26 06:28:22
- Advertisement
- Ads By Google
Re: Output:
\n
Pages:: 1