How to determine type (arithmetic, logical) of the expression.

Q26. An expression uses arithmetic, relational and logical operators together. How would you determine the type (arithmetic, logical) of the expression?

Ans. If an expression uses arithmetic, relational and logical operators together, then the type of expression will be determined through the result produced by it. An arithmetic expression always results in a number (integer or real) and a logical expression always results in a logical value that is, either TRUE (1) or FALSE (0).

Leave a Reply

Your email address will not be published. Required fields are marked *

111 Views
%d bloggers like this: