What will be the output of the following code : int x=5 , y=9; x += x++ - ++y + x; System.out.println("x="+x); System.out.println("y="+y);What will be the output of the following code : int x=5 , y=9; x += x++ - ++y + x; System.out.println("x="+x); System.out.println("y="+y);
Answers
Answered by
3
Answer:
X = 6
Y = 10
Explanation:
hmmm
Answered by
1
Answer: x=6
y=10
Explanation: As the output of the following code,
#include<studio.h>
#include<conio.h>
Void main()
{
intx=5;
inty=9;
Clrscr ();
x += x++ - ++y + x
System.out.println("x="+x);
System.out.println("y="+y);
fetch();
}
output
x=6
y=10;
#SPJ3
Similar questions