Posts by ODA • 1 point
1 post
-
-2
votes1
answer45
viewsQ: Why does pre-decrement generate a problem as an argument of a function? Why does Ex1 not work correctly?
#include <iostream> using namespace std; int fatorial(int num); int main(int argc, char const *argv[]){ cout<< factorial(5); return 0; } int factorial(int num)`{` if(num > 1) { Ex1:…