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

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

Q: What will be the output of the following program?
void main( ){
int a=10;
printf("%d",a);
{
int a=20;
printf("%d",a);
}
printf("%d",a);
}   
A. 10 10 B. 20 10
C. 10 20 10 D. 10 10 10

Answer and Explanation

Answer:10 20 10

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.