M
moijes12
Hi
I have a question regarding the for loop.
Suppose I write the below code :
#include <stdio.h>
int main(){
for( ; ; )
printf("Hello World\n");
return 0;
}
Now I am yet to try the above code but I assume the above code should
not have any output because there is no test expression.So the test
expression should evaluate to 0(False) rather than 1(True).
Please let me know what you think of this.
regards
moijes
I have a question regarding the for loop.
Suppose I write the below code :
#include <stdio.h>
int main(){
for( ; ; )
printf("Hello World\n");
return 0;
}
Now I am yet to try the above code but I assume the above code should
not have any output because there is no test expression.So the test
expression should evaluate to 0(False) rather than 1(True).
Please let me know what you think of this.
regards
moijes