This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi, I have a question about this ... int x =10++11; I say, that this is a invalid statement, because the operator is applicated over the variable... What do you know?
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.
Corey McGlone
Ranch Hand
Joined: Dec 20, 2001
Posts: 3271
posted
0
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
The longest possible translation is used at each step, even if the result does not ultimately make a correct program while another lexical translation would. Thus the input characters a--b are tokenized (�3.5) as a, --, b, which is not part of any grammatically correct program, even though the tokenization a, -, -, b could be part of a grammatically correct program.
SCJP2. Please Indent your code using UBB Code
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.