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;
num3=12;
cout fixed setprecision(2);
cout bar setw(5) num1 bar setw(5) num2 bar setw(5) num3 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|12||
None of these, setw(5) needs to be in quotes
What will display: double num 1 , num 2 ; char

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 Programming Questions!