0
I expect that this program prints "hello" one time but it produces error .explain why
#include <stdio.h> int main() { int k=1; for(k) printf ("hello"); return 0; }
1 Odpowiedź
+ 1
Because that's not how for loops work. You can change it like this to create an infinite loop: for(;k;)