Which of the following is INCORRECT? a. A function can effectively return many v
ID: 3812442 • Letter: W
Question
Which of the following is INCORRECT?
a. A function can effectively return many values to the calling program -- for example, by using reference parameters or a struct.
b. A function can return values input by the user.
c. A function can return several values to the calling program with the return statement -- for example, return (numerator, denominator).
d. A function can call another function.
e. A function can be called many times in a program.
a. A function can effectively return many values to the calling program -- for example, by using reference parameters or a struct.
b. A function can return values input by the user.
c. A function can return several values to the calling program with the return statement -- for example, return (numerator, denominator).
d. A function can call another function.
e. A function can be called many times in a program.
Explanation / Answer
Option C is incorrect. As, You can return only one thing from a function. Either you make a struct which contains all the things you want to return, or you pass some function parameters by reference. So, A function can not return several values to the calling program with the return statement -- for example, return (numerator, denominator).
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.