Originally Posted by
nickadeemus2002
Good afternoon everyone.
var=((5*67)+!50)
Code:
var = ((5*67)+!50);
var = ((5*67)+0);
Are the same. Indeed your example is just a waste of code since you would normally just do
Code:
var = 335; // as you had previously mentioned
You should use the ! operator with variables, not constants.
Code:
var = !x; // acceptable code
var = !0; // code that only will generate confusion later.
There is nothing wrong with using ! with constants except for the fact that it obfuscates your code.