What will be the Output? #include int fun() { static int num = 16; return…

What will be the  Output? 

#include

int fun()

{

   static int num = 16;

   return num--;

}

int main()

{

   for(fun(); fun(); fun())

     printf("%d ", fun());

   return 0;

} 

  1. A.

    Infinite loop

  2. B.

    13 10 7 4 1

  3. C.

    14 11 8 5 2

  4. D.

    15 12 8 5 2

Attempted by 358 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…