Welcome Guest | Sign in | Register
printf() and scanf() - Discussion Page For Q.10574 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > printf() and scanf() > Questions and Answers

Q:  What is the output of following program?
void main(){
int a,b,c,d;
a=b=c=d=1;
a=++b>1 || ++c>1 && ++d>1;
printf("%d%d%d",a,b,c,d);
}  
A. 1 1 2 1 B. 1 2 1 1
C. 1 2 2 1 D. 1 2 1 2

Answer and Explanation

Answer:1 2 1 1

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.