c+ s
HOW what is OUTPUT HERE when this CALL is made from Main
#include
usingnamespacestd;
voidrecurPrt(intn);
intmain()
{
recurPrt(2);
system("Pause");
return0;
}
voidrecurPrt(intn)
if(n!= 1)// Line 1
cout"Hooray\n";//Line 2
cout"\nHorray! "nendl;//6
cout"Hip\n";//Line 4
cout"\nDone?\n"endl;//4
recurPrt(n- 1);//5
cout"\nAgain?\n"endl;//7
elsecout"Yeah\n";//Line 2
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here