What is output?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 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 Resposta
+ 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