Computer Science, asked by tanvitamrakar1821, 9 months ago

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 lostworldearth
3

Answer:

X = 6

Y = 10

Explanation:

hmmm

Answered by rambabu083155
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