Write error message given by C compiler during compilation if we use %d to print float variable
Answers
Answered by
19
The error message given by C compiler during compilation if we use %d to print float variable is:
warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’
- Although the results may vary depending upon the compiler.
- For some it might automatically type cast into integer and display only the integer value.
Similar questions
Social Sciences,
5 months ago
Math,
5 months ago
English,
11 months ago
Math,
11 months ago
Accountancy,
1 year ago