I was just trying to show my son a simple 'for' loop in C, and it results in an infinite loop. Any thoughts? Any reported bugs or errors in .net studio?
Here is the code:
int main(void) {
int i;
for (i=0;i=10;i++) printf("%d", i);
return 0;
}
Shouldn't have been difficult, yet any 'for' loop I compile in a console application just runs infinitely.
Here is the code:
int main(void) {
int i;
for (i=0;i=10;i++) printf("%d", i);
return 0;
}
Shouldn't have been difficult, yet any 'for' loop I compile in a console application just runs infinitely.