Originally posted by geetha nagarajan:
if it's written as :
1) int x = 10+ +11;
It works ,the o/p is 21.
2)int x = 10 + +11;
It works ,the o/p is 21.
Is the positioning of space so important,pl.help clarify.
In this case, the space makes little difference as to where it is. The only thing that matters is that there is a space between the '+' signs. If they're together, they represent the increment operator in
Java. If they're separate, they represent the addition operator.
Corey