Is it possible to write a function that contains a call by reference using pointers, call by reference using references, and a call by value? If you think it is possible, write the prototype, function header line, and sample call statement.
What will be an ideal response?
Yes this is possible. Here’s an example:
void Function(int *pN1, int &rN2, int N3); //prototype and function header line
//code in main
int N1, N2, N3;
Function(&N1, N2, N3); //call statement
Computer Science & Information Technology
You might also like to view...
Portable computers contain rechargeable battery packs that can be charged via a power outlet.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
Explain the half-duplex transmission mode.
What will be an ideal response?
Computer Science & Information Technology
What is used to hold the URL of a media asset?
What will be an ideal response?
Computer Science & Information Technology
One of the most common reasons technicians need to access the BIOS setup utility is to modify the boot sequence
Indicate whether the statement is true or false
Computer Science & Information Technology