C
Programming and Technical
Programming
Output
What is the output and why?
#include
int main(){
int i=(char)65;
printf("%d %c %f %d",i,i,i,i);
return 0;
}
Read Solution (Total 6)
-
- 65 ,A,0.0000,65
- 8 years agoHelpfull: Yes(3) No(0)
- ERROR,FLOAT IS NOT DECLARED
- 8 years agoHelpfull: Yes(2) No(2)
- @Jyothi, If we compile it it will give some output. The program will be executed with out error.
- 8 years agoHelpfull: Yes(2) No(0)
- 65 A 65.0 65
- 8 years agoHelpfull: Yes(1) No(0)
- 65 A 0.000000 65
- 8 years agoHelpfull: Yes(1) No(0)
- 65,a,0.00000,some garbage value
because character value cant be overwritten need to use fflush(stdin) - 8 years agoHelpfull: Yes(0) No(0)
C Other Question