Friday, January 6, 2012

What is displayed if the field width specified for an integer or real is less than or greater than the actual or not specified?

If the field width specified is

-Less than actual, the printf function displays the actual value with the field width being the same as the actual number of digits

-Greater than actual, the printf function displays the value right justified within the specified field width

-Not specified, the printf function displays the actual value with the field width being the same as the actual number of digits

No comments:

Post a Comment