Hi There,
I am doing C language recently and I typed these codes belwo but there is somehting that I do not understand.
It is still not working, couls some one help me please:
#include
int i;
int main () {
for (i=10; i>=1; i --)}
printf("%d ",i);
}
}


VulpesRank #55 · 29.2K reputationPosted Aug 6, 2012, 5:52 AM EDT
In general, default values correspond to all bits being zero which, in the case of an int, represents a value of zero.
Ish BandhuRank #1,415 · 1.2K reputationPosted Aug 6, 2012, 2:00 AM EDT
int main ()
{
for (i=10; i>=1; i --)
{
printf("%d ",i);
}
}
VulpesRank #55 · 29.2K reputationPosted Aug 6, 2012, 2:12 AM EDT
for (i=10; i>=1; i --)}
The curly brace at the end is the wrong way around. It should be:
for (i=10; i>=1; i --){
sami sam39 reputationPosted Aug 6, 2012, 3:08 AM EDT
with no Zero
Also why we use zero anyway.
Regards.
sami sam39 reputationPosted Aug 6, 2012, 3:12 AM EDT
thanks :)