Atleast in C#, ++int increments the integer by 1 before use of it, and -- before int decrements it. But I get this confusing error when using this piece of code.
++int_name *= 10;
I increment the integer with 1 and * with 10, still throws compiler error. Some advise would be nice :)
Best How To :
Your syntax is not valid. Use this one instead:
int_name = ++int_name * 10;
The compiler error you get is:
The left-hand side of an assignment must be a variable, property or indexer
++int_name is not a variable but an expression yielding an integer number. How could you possibly assign a new value to a number?