Computer Science, asked by sharudivya1225, 11 months ago

(c)
Find the output of the following program :
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int x,y,z;
x=y=z=8;
Y=x++;
z=++x;
cout<<x<<y<<z;
getch();
}

Answers

Answered by aadithya2711p43gpy
1

889

Because value of x is 8 and it will print as it is and for y also 8 bcoz in prog they used Y instead of y so No change in y and for z the value is pre incremented which makes z value as 9 from ++8 so the output will be 889

Mark me as brainliest..


aadithya2711p43gpy: Hi
aadithya2711p43gpy: Mark me as brainliest
Similar questions