C
Programming and Technical
Programming
Output
#include
void main()
{
float p;
p=3.2:
printf("p/2*6",%d):
}
Read Solution (Total 18)
-
- it will show the error
- 9 years agoHelpfull: Yes(3) No(0)
- error.because expression doesnot have quotes
- 9 years agoHelpfull: Yes(2) No(0)
- it will show error bcz for float %d is not valid.
- 9 years agoHelpfull: Yes(2) No(0)
- The answer is 9... because, by the rule of bodmas, the result will be 9.6 as the calculation of (3.2/2)=1.6 then 1.6*6= 9.6; but the output should be in integer. hence the answer will be 9.
- 9 years agoHelpfull: Yes(2) No(0)
- given:p=3.2;
now, p/2*6 so
3.2/2*6=9.6 [BODMAS Rule] - 9 years agoHelpfull: Yes(0) No(2)
- is %d in correct place.?
- 9 years agoHelpfull: Yes(0) No(0)
- error because 4th statement are'n semicolon.
- 9 years agoHelpfull: Yes(0) No(0)
- Given:
Float p;
p=3.2;
printf("p/2*6",%d);
3.2/2*6
=8/5*6
48/5=9.6 - 9 years agoHelpfull: Yes(0) No(0)
- it wiil be an error....semicolon must defined and end of the line
- 9 years agoHelpfull: Yes(0) No(0)
- error because non matching datatype conversion because of %d instead f should be given
- 9 years agoHelpfull: Yes(0) No(0)
- By BODMAS rule p=3.2/2*6=9.6
. - 9 years agoHelpfull: Yes(0) No(0)
- 9.6
since '/ ' is having higher precedence over '*'. - 9 years agoHelpfull: Yes(0) No(0)
- it gives an error.
- 9 years agoHelpfull: Yes(0) No(0)
- Expression Syntex Error.
- 9 years agoHelpfull: Yes(0) No(0)
- Bad file format in include
: is not allowed after End of statement - 9 years agoHelpfull: Yes(0) No(0)
- Error::: expected expression before '%' token
- 9 years agoHelpfull: Yes(0) No(0)
- #include expects "FILENAME" or |
- 9 years agoHelpfull: Yes(0) No(0)
- it will show error because %d is outside the inverted commas
- 9 years agoHelpfull: Yes(0) No(0)
C Other Question