+ 3

What is output??

*what is output ?* main() {unsigned int i; int count=0; for(i=0;i<10;i--) count++; printf("%d", count); } Please explain me

14th May 2020, 3:15 PM
Bhavik prajapati
Bhavik prajapati - avatar
1 Answer
+ 3
it should be why output is this ,you can use code playground or wherever run the code online to see the output Output is 1 because Loop runs only once then i value becomes negative and unsigned only accepts positive values
14th May 2020, 4:33 PM
Abhay
Abhay - avatar