Monday, January 17, 2011

Differentiate between mathematical and logical (Boolean) operator

Operators

Function

Examples

Mathematical

Mathematical operators perform mathematical operations such as plus or substract

+ , - , * , /

Logical

Logical operators perform logical operations such as checking the condition of two Boolean values.

AND, OR , NOT

Relational

( Comparison )

Relational operators perform element-by-element comparisons between two arrays (elements)..

=, <, > , < > , <= , >=

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.