Boolean logical NOT operator
class MainClass
{
public static void Main()
{
bool result;
result = !(1 == 0);
System.Console.WriteLine("!(1 == 0) is " + result);
result = !(1 == 1);
System.Console.WriteLine("!(1 == 1) is " + result);
}
}
Output !(1 == 0) is True
!(1 == 1) is False
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
|