You are not logged in.

#1 2015-05-26 06:28:22

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

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.

2015-05-26 06:28:22

Advertisement
Ads By Google

Re: Output:



Board footer