Predict the output of below programs. #include <stdio.h> int main() { static…

Predict the output of below programs.

#include <stdio.h>
int main()
{
static int i=5;
if(--i){
main();
printf("%d ",i);
}
}  

  1. A.

    5 4 3 2 1 

  2. B.

    4 3 2 1

  3. C.

    0 0 0 0

  4. D.

    4

Attempted by 588 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…