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;

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
LATEST TUTORIALS
APPROVED BY CLIENTS