Social Sciences, asked by Anonymous, 1 year ago

Form the C program

Since i is static variable, it is shared among all calls to main(). So is reduced by 1 by every function call.​

Answers

Answered by GhaintMunda45
3

Code

Input

#include <stdio.h>

int main()

{

static int i=5;

if (--i){

printf("%d ",i);

main();

}

}

Output

4 3 2 1


vanshita77: hi
vanshita77: nice answer
Answered by kirangusain84
0

Answer:

Input

#include <stdio.h>

int main()

{

static int i=5;

if (--i){

printf("%d ",i);

main();

}

}

Output

4 3 2 1

Similar questions