KnowledgeBoat Logo

Computer Applications

Assuming x = 1 with the following code snippet:

int y = --x;

Which one of the following is true?

  1. x=1, y=1
  2. x=0, y=0
  3. x=1, y=0
  4. x=0, y=1

Java Operators

6 Likes

Answer

x=0, y=0

Answered By

1 Like


Related Questions