Olá Pessoal!!
Eu não consegui entender a questão abaixo, alguém poderia explicar:
class EBH105 {
static int m(int i) {System.out.print(i + ","); return 0;}
public static void main (String[] args) {
int i = 0; i = i++ + m(i); System.out.print(i);
}}
What is the result of attempting to compile and run the above program?
a. Prints: 0,0
b. Prints: 1,0
c. Prints: 0,1
d. Prints: 1,1
e. Run-time error
f. Compile-time error
g. None of the above
Obrigada
Cíntia :-o
EDIT (Moderador) - Por favor, use as tags [ code ] para formatar código-fonte.