✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What will be the output of the following code:
int factorial(int n) {
if(n == 0)
return 1;
else
return n * factorial(n-1);
}
int main() {
int number = 5;
cout<<factorial(number);
return 0;
}