Computer Science, asked by akjeelani255, 4 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 saro5243
0

Answer:

c.$$$9#418@@@@@@ is correct answer

Similar questions