Sail E0 Webinar
Question


What will be the output of the program


#include<stdio.h>
void fun(int);
int main(int argc)
{
printf("%d ", argc);
fun(argc);
return 0;
}
void fun(int i)
{
if(i!=4)
main(++i);
}
Options:
A .  1 2 3
B .  1 2 3 4
C .  2 3 4
D .  1
Answer: Option B



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers