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

Home > Java Programming > Operators > Questions and Answers

Q: What will be the output?
main()
{
int i;
i = 10;
printf("%d\t",5,6);
printf("%d", i , i++);
}  
A. 5 11 B. 6 10
C. 6 11 D. 5 10

Answer and Explanation

Answer:5 11

Explanation:
Value in a function get passed from right to left. First i++ get passed and it make i = 11.

Comment on this Question

Name:

Loading...




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