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

3 Likes

Answer

x=0, y=0

Answered By

3 Likes


Related Questions