Top

Discussion

What will be the output of the program

#include
void fun(int);

int main(int argc)
{
    printf("%d ", argc);
    fun(argc);
    return 0;
}
void fun(int i)
{
    if(i!=4)
        main(++i);
}

 

  • A.1 2 3
  • B.1 2 3 4
  • C.2 3 4
  • D.1

Answer: B

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment