ADITI
Company
Programming
Program
Q. What is the output of the program given below
#include
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%dn",i);
}
Read Solution (Total 1)
-
- -128
because when the value of i will be 127 then i will be increase by 1. so the updated value of i is 128 but in char it is not possible to store . so then i value goes to -128 . then the condition will be false and i will be printed - 10 years agoHelpfull: Yes(0) No(0)
ADITI Other Question