C- Functions Question and Answer
C- Functions Question and Answer
151. Find the output
void e(int);
void main ( )
{
int a;
a=3;
e (a);
}
void e(int sun)
{
if (sun>0)
{
e(--(sun);;
printf("%d ", sun);
e(--sun);
}
}
void e(int);
void main ( )
{
int a;
a=3;
e (a);
}
void e(int sun)
{
if (sun>0)
{
e(--(sun);;
printf("%d ", sun);
e(--sun);
}
}
- 0 1 2 0
- 0 1 2 1
- 1 2 0 1
- 0 2 1 1