On Wed, Dec 18, 2002 at 08:29:38AM +0530, Abhijeet D Mhatre wrote:
****************************************
* LUG meet on 12 Jan. 2003 @ VJTI
****************************************
int fact;
int x;
fact=factorial(6);
printf ("%i\n",fff());
}
int factorial(int x){
if(x>1) return(x*factorial(x-1));
}
int fff () {
;
}
Something very strage, I did the following (inserted wait(1),
thats it)
# include <stdio.h>
main(){
int fact;
int x;
fact=factorial(6);
wait(1);
printf ("%i\n",fff());
}
int factorial(int x){
if(x>1) return(x*factorial(x-1));
}
int fff () {
;
}
And the output I get is (-1).