use of ! operator

This tip submitted by mrinal jha on 2006-03-13 08:20:55. It has been viewed 19338 times.
Rating of 5.5 with 181 votes

the ! operator reverses the value of the expression it operates on. It makes a true expression false and a false expression true. The ! operator is often used to reverse the logical value of a single variable.

More tips

Help your fellow programmers! Add a tip!