views:

100

answers:

4

Possible Duplicate:
What is the difference between += and =+?

I know what saying x+=1; means

but what does

saying x=+1; mean?

+4  A: 

It assigns a value of +1 to variable x.

BalusC
+10  A: 

There is no =+ operator. x=+1 simply means assign +1 (positive 1) to x.

casablanca
hurm It must be an odd contruct of the api I use, I assumed it was part of the Java Language because I know in C it is a post operator.
Doodle
@Doodle: There is no such operator in C either. The post-increment operator is `++`, which is present in Java as well.
casablanca
A: 

x += 1 can also be written as x = x + 1

Russell Dias
A: 

As far as I know such operator doesn't exist. Where have you seen this?

EpsilonVector