Default value to non initialized variables
问题 I'm reading this tutorial about debugging. I pasted the factorial code in my .c archive: #include <stdio.h> int main() { int i, num, j; printf ("Enter the number: "); scanf ("%d", &num ); for (i=1; i<num; i++) j=j*i; printf("The factorial of %d is %d\n",num,j); } When I run the executable, it always print 0 , however, the author of the tutorial says that it return numbers garbage value. I've googled about this and I've read that this is right, except for static variables. So it should return