Note that in the expression( o r <exp r 1> <exp r 2>)or is considered to be a special form and not a procedure, Why?(Answer in one sentence)
Question
Note that in the expression ( o r <exp r 1> <exp r 2>)
, or
is considered to be a special form and not a procedure, Why?
Solution
In the expression , "or" is considered a special form because it evaluates the expressions and in a way that allows for short-circuit evaluation, meaning that it returns the first truthy result without necessarily evaluating both expressions, unlike standard procedures which always evaluate all their arguments.
Similar Questions
Briefly describe any TWO advantages of using sub procedures or functions in aprogram. (5 Marks)
Which one of the following has the highest precedence in the expression?OptionsParenthesesAdditionExponentialMultiplication
Which one of the following has the highest precedence in the expression?ExponentialAdditionMultiplicationParentheses
Which of the following option is used when working with complicated expressions in C++ ?
Question37Max. score: 2.00In C++, which of the following operators is an extraction operator?^v<<>>
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.