Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

15. When defining a reference to an object, use the character of the reference.

ID: 3586978 • Letter: 1

Question

15. When defining a reference to an object, use the character of the reference. preceding the name a. & 16, when a function is called and an object is passed by reference, the object passed internally is a. address b. object 17. Given the definitions you can access the variable x via the pointer px using the expression a. px b. px c.&px; 18. You can distinguish the redirection operator·from the multiplication operator * by the of operands. a. number b. order 19. Suppose that the function revers() manipulates a string. As an argument, it requires the address of a string type object and it returns no value. In this case, the prototype of the function is a. void revers(string ); b. void revers(string ); 20. A function can use reference parameters to return multiple values to the calling function. a. True b. False 21. Given the definitions int a 2, b-3, c 6 the expression abc a. causes the compiler to issue an error message b. the value of a is14. c, the value ofa is 20.

Explanation / Answer

15) & is for address, * represent pointer. Ans *

16) address

17) *px (as it store the adress of x which contains value of x)

18) number

19)

20) true

21) the value of a is 20

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote