Explain 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...

____________ is a term that refers to an image’s width to height ratio.

a. Area b. Bounding box c. Aspect ratio d. UV map

Computer Science & Information Technology

The ________ connects disk drives to the processor

A) data bus B) central processing unit C) drive controller D) port

Computer Science & Information Technology

You can insert jQuery Mobile ____ from the jQuery Mobile tab of the Insert panel to provide additional functionality.

A. gadgets B. themes C. roots D. widgets

Computer Science & Information Technology

Misappropriation of assets can involve various schemes: expense reimbursement fraud, lapping, and payroll fraud. Explain each and give an example.

What will be an ideal response?

Computer Science & Information Technology