Computer Science, asked by akjeelani255, 3 months ago

what is the output of the code?
#include <iostream>
#include <iomanip>
using namespace std;

void modify(int x, int y, int z)
{
cout << setfill('$');
cout << setw(sizeof(int)) << x;

cout << setfill('#');
cout << left << setw(sizeof(char)) << y ;

cout << setfill('@');
cout << right << setw(sizeof(double)) << z << end1;
}
int main()
{
modify(9, 4, 18);
return 0;
}


a. $$$94@@@@@@18
b. $$$$9#4@@@@@18
c. $$$9#418@@@@@@
d. $$$9418@@@@@@​

Answers

Answered by DeepuDeeps01235
9

Answer:

a. $$$94@@@@@@18

Explanation:

crt the line 22, it should be 'endl;' not 'end1;'

Similar questions