It was just an interesting thought. In languages like C # and Java, I know that when it comes to incrementing and decreasing, you can do a message or a pre-increment / decrement. Like this:
int a = 5;
Console.WriteLine(a++);
Console.WriteLine(++a);
But I was wondering if there is such a thing where you can do something like this:
int a = 5;
Console.WriteLine(a += 5);
Console.WriteLine(a =+ 5);
I was just interested and did not know where and how to look for an answer, so I wondered if anyone else knew anything about SO about this. Thank!
Edit: Added my question from comments
Where precisely defined a += 5and a =+5? I have never seen a second to use. Does this even exist ...? Are they the same thing?
source
share