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
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
Answered by
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