xplain three schemes that you could use to have a function “return” two data items to the calling function. Note: you can’t use global variables.
What will be an ideal response?
1) Use pointers, and explicitly pass the addresses of the two variables to the function using the & operator. Use the indirection operator * to return values to the calling function. (2) Use references, and implicitly pass the
Computer Science & Information Technology
You might also like to view...
C++ is an example of a
a. Machine language b. High-level language c. Low-level language d. Assembly language
Computer Science & Information Technology
In the accompanying figure, item 9 is pointing to a ____.
A. dialog box B. notification area C. desktop icons D. pinned items
Computer Science & Information Technology
________ is not an object-oriented programming language.
a. Java b. C++ c. C d. C# e. Python
Computer Science & Information Technology
A ________ is the intersection of a column and a row
Fill in the blank(s) with correct word
Computer Science & Information Technology