Consider this code: “int v = 20; –v; System.out.println(v++);”. What value is printed, what value is v left with?

LANGUAGE: JAVA

CHALLENGE:

Consider this code: “int v = 20; –v; System.out.println(v++);”. What value is printed, what value is v left with?

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,

1 Comment

  1. justin on January 25, 2015 at 5:48 pm

    the answer is as follows:
    s is 20 t = 40

Leave a Comment

You must be logged in to post a comment.