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);
}
}

VulpesPosted Aug 6, 2012, 9:52 AM
In general, default values correspond to all bits being zero which, in the case of an int, represents a value of zero.
sami samPosted Aug 6, 2012, 7:12 AM
thanks :)
sami samPosted Aug 6, 2012, 7:08 AM
with no Zero
Also why we use zero anyway.
Regards.
VulpesPosted Aug 6, 2012, 6:12 AM
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 --){
Ish BandhuPosted Aug 6, 2012, 6:00 AM
int main ()
{
for (i=10; i>=1; i --)
{
printf("%d ",i);
}
}