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 variablenum10.
4. It sets setw to 0046
5. None of these
Expert Answer
An answer will be send to you shortly. . . . .