What will be the output?
#include <iostream>
using namespace std;
void f(int);
int main()
{
f(2);
return 0;
}
void f(int n)
{
if (n == 0)
cout << n << ' ';
else
f(n-1);
}
Reply in comments.
#include <iostream>
using namespace std;
void f(int);
int main()
{
f(2);
return 0;
}
void f(int n)
{
if (n == 0)
cout << n << ' ';
else
f(n-1);
}
Reply in comments.
1
ReplyDeleteWrong Answer Chiko
ReplyDelete