Using flags(), you can manipulate all format flags at once. Calling flags() without an argument
returns the current format flags. Calling flags() with an argument takes this argument as the new
state of all format flags and returns the old state. Thus, flags() with an argument clears all flags
and sets the flags that were passed. Using flags() is useful, for example, for saving the current
state of the flags to restore the original state later. The following statements demonstrate an example: