0
What will be the output of this code?
#include <stdio.h> int main() { int i=3; while(i=1) { printf("%d",i++); } printf("%d",i); return 0; }
1 Answer
+ 2
The output of this code is 1 in an infinite loop
#include <stdio.h> int main() { int i=3; while(i=1) { printf("%d",i++); } printf("%d",i); return 0; }