#include
void print(int n)
{
if(n == 0){
return;
}
else{
std::cout<
print(n - 1);
std::cout<
}
}
int main()
{
print(5);
}
ans:5432112345
i need an explanation for the answer!
Answers
Answered by
1
Answer:
#include <iostream>
using namespace std;
void fun(int& a, int b)
{
a += 2;
b += 1;
}
int main() {
int x = 10, y = 2;
fun(x, y);
cout << x << " " << y << " ";
fun(x, y);
cout << x << " " << y;
return 0;
- hope it helps you...
- please mark it as a brainlist answer...
- also please rate thanks and follow me...
- stay home STAY SAFE...
Similar questions