Find the output of the following code while a value is 2.
#includeiostream
using namespace std;

int f(int i, int n, int j){
if(in)
return 1 ;
printf("Sookshmas_%d \n",j++);
f(i+1, n, j);
}

int main(){
int a;
cina; //a = 2
f(1, a, 1);
return 0;
}


Posted on by