Welcome Guest | Sign in | Register
Operators - Discussion Page For Q.10694 | 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 12 13 13 B. 11 12 13 13 14
C. 10 11 12 12 13 D. 11 12 13 14 14

Answer and Explanation

Answer:11 12 13 14 14

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.