Welcome Guest | Sign in | Register
Operators - Discussion Page For Q.10732 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Operators > Questions and Answers

Q: What is the output of the following program?

void xyz(int p1, int *p2){
++p1;
++*p2;
printf("%d%d",p1,*p2);
}

void main(){
int a=10;
xyz(a++,++*(&a));
xyz(a++,++*(&a));
printf("%d",a);
}  
A. 10 11 13 14 14 B. 11 12 14 15 15
C. 12 13 15 16 16 D. 11 12 13 14 14

Answer and Explanation

Answer:12 13 15 16 16

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.