+ 1

#1. Q.1 whats the output...

int i; for(i=0;i<10;i+1) cout<<i; Answer after 2 days...

15th Jun 2018, 7:01 AM
Yash Nirmal
Yash Nirmal - avatar
2 Réponses
+ 7
if your increment value as i+1 then it's going to produce error or infinite loop.. otherwise if you consider i=i+1 or i++ then print is >> 0123456789
15th Jun 2018, 7:07 AM
Scooby
Scooby - avatar
0
so output is: infinite loop of zeros 0000000....
18th Jun 2018, 5:17 AM
Yash Nirmal
Yash Nirmal - avatar