What is the output of the code?
#include
#include
using namespace std;
void modify(int x, int y, int z)
{
cout << setfill('$');
cout << setw(sizeof(int)) << x;
cout << setfill ('#');
cout << left << setw(sizeof(double)) << z << endl;
}
int main ()
{
modify (9, 4, 18);
return 0;
}
a) $$$94@@@@@@18
b) $$$$9#4@@@@@18
c) $$$9#418@@@@@@
d) $$$9418@@@@@@
Answers
Answered by
2
Similar questions