Computer Science, asked by skmaaz2006, 5 months ago

9. "With x = 0, which of the
following are legal lines of Java
code for changing the value of
x to 1? 1. x++; 2. x= x + 1; 3. x +=
1; 4. X =+ 1;"*
a. 1,2 & 3
O b.1&4
O c. 1, 2, 3 & 4
d. 3 & 2​

Answers

Answered by Anonymous
0

Answer:

b.1&4

Explanation:

x++ =0+1=1

x=+1 means x=x+1

Answered by mujawarkudrat
0

Answer:

c

Explanation:

Similar questions