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

Home > Java Programming > If statements > Questions and Answers

Q: What will be output when you will execute following c code?
#include
void main(){
int a=100;
if(a>10)
printf("M.S. Dhoni");
else if(a>20)
printf("M.E.K Hussey");
else if(a>30)
printf("A.B. de villiers");
}
A. M.S. Dhoni B. A. B. de Villiers
C. M.S. Dhoni M.E.K Hussey A.B. de Villiers D. Compilation Error

Answer and Explanation

Answer:M.S. Dhoni

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.