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

Home > Java Programming > If statements > Questions and Answers

Q: What is the output of the following code?
void main()
{
int i;
i=0;
if(i=15,10,5)
printf("Programing %d",i);
else
printf("Skills %d",i);
getch ();
}
A. Skills 15 B. Programing 5
C. Programing 15 D. Skills 5

Answer and Explanation

Answer:Programing 15

Explanation:
Condition is true come inside if part and print Programing 15.

Comment on this Question

Name:

Loading...




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