Computer Science, asked by TbiaSamishta, 1 year ago

if x = 12.4568, what value will be printed, if the printf() function is used as? printf( "%.3f", x);

Answers

Answered by Sidyandex
0

When using printf, a subsequence beginning with % format and replaced the arguments (area, in this case).

the %.3f means to print area as a floating point decimal with a precision of at least 3 digits.

However, the floating point numbers (e.g. %f), it controls the number should available from the decimal point along with along with the printf function.

Similar questions