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

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

Q: What is the output of following program?
main(){
auto a;
register r;
static s;
extern e;
printf("%d",sizeof a);
printf("%d",sizeof r);
printf("%d",sizeof s);
printf("%d",sizeof e);
return 0;

A. 2 4 2 4 B. 2 2 4 2
C. 2 2 2 2 D. 2 4 2 2

Answer and Explanation

Answer:2 2 2 2

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.