In the programming world, this means NOT. It is mostly used in boolean
expressions, mostly found in if statements, to express the non-equality of something.
It can be used with an '=' sign like this: 3 != 4, meaning 3 does not equal 4. This is a true
expression, and so the
expression would return TRUE. However, if I put: ((6-3) != (5-2)) I'm basically saying 6-3 is not equal to 5-2, or 3 does not equal 3. But 3 DOES equal 3. So this expression would return false.
NOTE: != is pronounced as "Does Not Equal"
This can also be used in dialog.
int main()
{
int john = 6;
int mary = 7;
if(john != mary)
{
printf("John does not equal Mary.\nJohn does equal %d, and Mary does equal %d.\nThere is %d between them.\n",john,mary,(john-mary));
}
}
John: "Hey, did you here that science dude say e = mc3?"
Mary: "
Yeah man! e totally != mc3! (NOTE: ! at end of Mary's quote does not mean the same thing. Please refer to
definition number 1 here !)"