I had a problem with exclamation marks and integers by reading the code in my help system.
Let's say I declared an integer variable called number - int number = 0;
Then I use the while function with an exclamation mark and number
while(!number)
{
...
}
I am confused by this because I do not know what it means !numberand that it would be possible to return the results? I'm not sure that this can be used, but, as I said, I saw this in my book.
So it would be great if someone could tell me what it means !numberand what it evaluates?
Thanks in advance.
source
share