Given the following function definition: int doit(int &x,
int y, int &z) { x = 3*x; y = y + 5; z = x+y; return z -
4; } int a = 5, b = 7, c = 9, d = 11; d = doit(a,b,c);

Answer Posted / cris

a = 15
b = 7
c = 27
d = 23

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between strcpy() and strncpy()?

734


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2144


Where do I find the current c or c++ standard documents?

689


Is c++ a high level language?

643


What are the uses of typedef in a program?

694






Differentiate between late binding and early binding. What are the advantages of early binding?

676


Does improper inheritance have a potential to wreck a project?

742


Explain how the virtual base class is different from the conventional base classes of the opps.

794


What is iterator c++?

632


What are the different types of polymorphism in c++?

704


What is private public protected in c++?

629


Difference between pointer to constant and constant pointer to a constant. Give example.

740


Is c the same as c++?

650


When one must use recursion function? Mention what happens when recursion functions are declared inline?

734


Explain one method to process an entire string as one unit?

1089