I'm preparing for an exam and in the code for the exam there is an operation like this:
while(buttons ==!1) //buttons is integer
I know what "==" and "!" does, but I've never seen it being used like this.
I would assume that the ! operator turns the 1 into a false, so that the expression is equal to:
while(buttons == false) or while(buttons == 0)
Can anyone explain the meaning of this expression please?