Answer to Question #12919 in C++ for shalennee
Question #12919
Write down the output for the following program segment:
i += 3;
j ++;
--k;
cout << i << '\t' << j << '\t' << k << endl;
cout << fixed << showpoint << setprecision(4);
cout << x << endl;
i += 3;
j ++;
--k;
cout << i << '\t' << j << '\t' << k << endl;
cout << fixed << showpoint << setprecision(4);
cout << x << endl;
Expert's answer
If int i=0;
int j=0;
int k=3;
double x=4.35678; , then
otput is: 3 1 2
4.3568
int j=0;
int k=3;
double x=4.35678; , then
otput is: 3 1 2
4.3568
Need a fast expert's response?
Submit orderand get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment