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 / harminder

I think it will be

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

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between method overloading and method overriding in c++?

647


What are the steps in the development cycle?

703


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

690


Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1124


What is a lambda function c++?

657






Define namespace in c++?

725


What is meant by iomanip in c++?

713


How do you traverse a btree in backward in-order?

718


Is swift better than c++?

627


What are the important differences between c++ and java?

707


What is c++ stringstream?

703


How can you link a c++ program to c functions?

721


How do you save a c++ program?

657


Why is main function important?

686


what are the decision making statements in C++? Explain if statement with an example?

749