0

Hi i'm new at programming, stack overflow and i have a question

int i = 0;
int j ;
j = ++i;
System.out.println(i);

in this code why is the output 1 and not 0 as (i) should be? why is it connected to (j) value?

Dave Newton
  • 158,873
  • 26
  • 254
  • 302

0 Answers0