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
0
Answer:
c.$$$9#418@@@@@@ is correct answer
Similar questions
Computer Science,
1 month ago
Biology,
1 month ago
Math,
4 months ago
Math,
4 months ago
English,
10 months ago