Formatting means representation of data with different settings as per the requirement of the user. The various
settings that can be done are number format, field width, decimal points etc.
The data accepted or printed with default setting by the I/O function of the language is known as unformat-
ted data. For example, when the cin statement is executed it asks for a number. The user enters a number
in decimal. For entering decimal number or displaying the number in decimal using cout state ment the user
won’t need to apply any external setting. By default the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.