Google
 
Webcprogramming.com




An Affiliate of AIHorizon




comparison - equality

identifier == identifier;
The == sign is used to compare primitive types such as char, int, float, etc. The comparison operator returns true if the two identifiers are equal. == is not a good choice for comparing C-style strings or arrays because it will check whether they occupy the same memory location, not whether they share the same value.


-----
Interested in advertising with us?
Please read our privacy policy.
Copyright © 1997-2005 Cprogramming.com. All rights reserved.