use of ! operator

This tip submitted by mrinal jha on 2006-03-13 08:20:55. It has been viewed 18909 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.