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

Home > Java Programming > Operators > Questions and Answers

Q: What the below statement will print if a=10?
printf("%d %d",a, !a++); 
A. 11 0 B. 10 10
C. 10 0 D. 0 10

Answer and Explanation

Answer:11 0

Explanation:
Values in the function get passed from right to left. First !a++ get processed which pass zero as argument and make a equal to 11

Comment on this Question

Name:

Loading...




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