Question: 1) Which is true about the following statement? int num1 = 46; cout < < setw(4) < < num1 < < .; 1. It displays

1) Which is true about the following statement?

int num1 = 46;

cout << setw(4) << num1 << ".";

1. It displays 46. preceded by two spaces.

2. It outputs: setw(4) 46.

3. It should use setw(10) to output the value in the variable num10.

4. It sets setw to 0046

5. None of these

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!