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

About 3.2 billion people, nearly half the world population, are at risk for malaria. In 2015, there are about 214 million malaria cases and an estimated 438,000 malaria deaths.

Did you know?

The newest statin drug, rosuvastatin, has been called a superstatin because it appears to reduce LDL cholesterol to a greater degree than the other approved statin drugs.

Did you know?

This year, an estimated 1.4 million Americans will have a new or recurrent heart attack.

Did you know?

Every flu season is different, and even healthy people can get extremely sick from the flu, as well as spread it to others. The flu season can begin as early as October and last as late as May. Every person over six months of age should get an annual flu vaccine. The vaccine cannot cause you to get influenza, but in some seasons, may not be completely able to prevent you from acquiring influenza due to changes in causative viruses. The viruses in the flu shot are killed—there is no way they can give you the flu. Minor side effects include soreness, redness, or swelling where the shot was given. It is possible to develop a slight fever, and body aches, but these are simply signs that the body is responding to the vaccine and making itself ready to fight off the influenza virus should you come in contact with it.

Did you know?

Most strokes are caused when blood clots move to a blood vessel in the brain and block blood flow to that area. Thrombolytic therapy can be used to dissolve the clot quickly. If given within 3 hours of the first stroke symptoms, this therapy can help limit stroke damage and disability.

For a complete list of videos, visit our video library