Can you please explain the output of the following problem.
main(){
fun(4);
}
void fun(int x){
if(x>0){
fun(–x);
pf(x);
fun(–x);
}
}
Can you please explain the output of the following problem.
main(){
fun(4);
}
void fun(int x){
if(x>0){
fun(–x);
pf(x);
fun(–x);
}
}
This code will give compilation error.