+ 3
anyone help me explain why this code print "0"?
4 Answers
+ 3
It returns zero because local variables will be unknown .
global and static variables will be zero. your variable is global
+ 1
uninitialized variables often have value 0, but not necessarily
+ 1
@michal
thanks!!!
one more question, when it have value 0?