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; }

25th Feb 2020, 6:03 PM
Md. Asiful Hoque Prodhan
Md. Asiful Hoque Prodhan - avatar
1 Answer
+ 2
The output of this code is 1 in an infinite loop
25th Feb 2020, 6:20 PM
Gabriel Ilie
Gabriel Ilie - avatar