Welcome Guest | Sign in | Register
If statements - Discussion Page For Q.10512 | 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?
#include "stdio.h"
main(){
static int s;
++s;
printf("%d",s);
if(s<=3)
main();
printf("%d",s);
return 0;
}
A. 1 2 3 4 4 4 4 4 B. 0 1 2 3 4 4 4 4
C. 1 2 3 3 4 4 4 4 D. 0 1 3 4 4 4 4 4

Answer and Explanation

Answer:1 2 3 4 4 4 4 4

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.