#include<stdio.h>
int main()
{
    factorial(20);
    return 0;
}

int factorial(int n)
{
    if(n==1)
         return 1;
   else
        printf("%d",n*factorial(n-1));
}


its printing the result. i think it should not as sizeof(int) on linux
fedora 15 compile:gcc is 4bytes.
can anyone explain why?

-- 
Abhishek Gupta
MCA
NIT Calicut
Kerela

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to