What is the output ?
If the break is replaced by continue, what is the output ?
#include <stdio.h>
int main() {
int i;
for (i = 0 ;; i++) {
i = i + 2;
printf ("output : %d\n", i);
break;
}
return 0;
}
a) No output and program stops.
b) No output and programs runs indefinitely.
Comments
Post a Comment