$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · easy · #219

What is the output?

char c = 'A';
c += 2;
System.out.println(c);
  1. 67
  2. C
  3. A2
  4. B
Compound assignment casts back to char, so A moves two code points forward to C.
Play Problem Solving ▸