Computer Science, asked by jjmarzook6228, 1 month ago

Write error message given by c compiler during program compilation, if you use %d to print float variable.

Answers

Answered by seller464
0

Answer:

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.

Explanation:

Similar questions