Computer Science, asked by khushilbhimani, 11 months ago

Write error message given by C compiler during compilation if we use %d to print float variable​

Answers

Answered by Anonymous
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