0
Why there is "new price %4f"?explain plz .any eg
C
2 Respostas
+ 4
Tip : always mention language either in question discription or in relevant tags.
Assuming it to be C/C++.
"%4f" will print a floating point with a width of at least 4 wide
Whereas
"%.4f" will print a floating point with a precision of four characters after the decimal point.
+ 1
The format string "%4f" says: use at least 4 characters for the full string.