0
public class Program { public static void main(String[] args) { int s=13; int h=45; int j=s++h; System . out. println (j); } }
answer is not coming
3 Answers
+ 2
++ just adds 1 to a variable.
0
as you can see he wants to add the two numbers. so that is the way
- 1
what you need to do is ,
int j = s += h;
now the compiler adds h to s and the answer is stored in j