C
Programming and Technical
Programming
Output
What will be the output of the C program, if input is 6?
#include
int main()
{
unsigned char i = 0;
for(;i<=0;i++) ;
printf("%dn",i);
return 0;
}
Read Solution (Total 6)
-
- Answer is 1n...
- 5 years agoHelpfull: Yes(7) No(0)
- It has no give any output because printf() header file is not declare. so it has compilar error.
printf() and scanf() function header file is #include means standard input output - 6 years agoHelpfull: Yes(3) No(2)
- Answer is 6n.
- 6 years agoHelpfull: Yes(2) No(2)
- this answer is 1n in devc++ compiler. Its vary compiler to compiler
- 6 years agoHelpfull: Yes(1) No(0)
- as input 6 and condition become false ... i
- 5 years agoHelpfull: Yes(0) No(0)
- 1n , because i=0, after one execution of for loop i.e. for(;i
- 3 years agoHelpfull: Yes(0) No(0)
C Other Question