Question: It makes sense to have an if-expression in a programming language. a) Does it make sense to have a while-expression; that is, can a while-expression
It makes sense to have an if-expression in a programming language.
a) Does it make sense to have a while-expression; that is, can a while-expression return a value, and if so, what value?
b) Does it make sense to have a case or switch expression; that is, can a case-expression return a value, and if so, what value?
c) Does it make sense to have a do-or repeat expression; that is, can a do-expression return a value, and if so, what value?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
