Author Question: What is TRUE about the following statement?cout (Read 21 times)

student77

  • Hero Member
  • *****
  • Posts: 567
What is TRUE about the following statement?
cout << setw(4) << num4 << "  ";
◦ It outputs "setw(4)" before the value in num4.
◦ It is incorrect because it should use setw(num4).
◦ It is incorrect because it should use setw(10).
◦ It allows four spaces for the value in num4.


jxjsniuniu

  • Sr. Member
  • ****
  • Posts: 343
It allows four spaces for the value in num4.



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
 

Did you know?

The modern decimal position system was the invention of the Hindus (around 800 AD), involving the placing of numerals to indicate their value (units, tens, hundreds, and so on).

Did you know?

Complications of influenza include: bacterial pneumonia, ear and sinus infections, dehydration, and worsening of chronic conditions such as asthma, congestive heart failure, or diabetes.

Did you know?

Although puberty usually occurs in the early teenage years, the world's youngest parents were two Chinese children who had their first baby when they were 8 and 9 years of age.

Did you know?

In the United States, congenital cytomegalovirus causes one child to become disabled almost every hour. CMV is the leading preventable viral cause of development disability in newborns. These disabilities include hearing or vision loss, and cerebral palsy.

Did you know?

Cocaine was isolated in 1860 and first used as a local anesthetic in 1884. Its first clinical use was by Sigmund Freud to wean a patient from morphine addiction. The fictional character Sherlock Holmes was supposed to be addicted to cocaine by injection.

For a complete list of videos, visit our video library