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
Get step-by-step solutions from verified subject matter experts
