HI I am trying to work on a very simple recursive function but i get o/p as some negative values.. can u please help and tell me what mistake i am doing ?
#include<iostream.h>
void countdown(int x)
{
using namespace std;
cout<<x<<endl;
countdown(x-1);
}
int main(void)
{
countdown(10);
return 0;
}