Author Question: What is TRUE about the following statement?cout (Read 13 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?

Common abbreviations that cause medication errors include U (unit), mg (milligram), QD (every day), SC (subcutaneous), TIW (three times per week), D/C (discharge or discontinue), HS (at bedtime or "hours of sleep"), cc (cubic centimeters), and AU (each ear).

Did you know?

There used to be a metric calendar, as well as metric clocks. The metric calendar, or "French Republican Calendar" divided the year into 12 months, but each month was divided into three 10-day weeks. Each day had 10 decimal hours. Each hour had 100 decimal minutes. Due to lack of popularity, the metric clocks and calendars were ended in 1795, three years after they had been first marketed.

Did you know?

All patients with hyperparathyroidism will develop osteoporosis. The parathyroid glands maintain blood calcium within the normal range. All patients with this disease will continue to lose calcium from their bones every day, and there is no way to prevent the development of osteoporosis as a result.

Did you know?

In inpatient settings, adverse drug events account for an estimated one in three of all hospital adverse events. They affect approximately 2 million hospital stays every year, and prolong hospital stays by between one and five days.

Did you know?

Certain rare plants containing cyanide include apricot pits and a type of potato called cassava. Fortunately, only chronic or massive ingestion of any of these plants can lead to serious poisoning.

For a complete list of videos, visit our video library