Question: What will display: double num 1 , num 2 ; char bar = ' l ' ; int num 3 ; num 1 = 6

What will display:
double num1, num2;
char bar ='l';
int num3;
num1=6;
num2=7.564;
num 3=12
cout fixed setprecision(2);
cout bar setw (5) num 1 bar setw (5) num 2
bar setw(5) num 3 bar;
|6.00|7.56|12.00|
|6.00|7.56|,12|
bar 6.00 bar 7.56 bar 12.00
|6.00|7.564||
None of these, setw(5) needs to be in quotes
 What will display: double num1, num2; char bar ='l'; int num3;

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!