What will be the output of the C program, if input is 6?

#includestdio.h
int fun();
int main(){
for(fun();fun();fun())
{
printf("%d ", fun());
}
return 0;
}
int fun()
{
int static num = 10;
return num--;
}

Posted on by