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
What is the difference between method overloading and method overriding in c++?
What are the steps in the development cycle?
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?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
What is a lambda function c++?
Define namespace in c++?
What is meant by iomanip in c++?
How do you traverse a btree in backward in-order?
Is swift better than c++?
What are the important differences between c++ and java?
What is c++ stringstream?
How can you link a c++ program to c functions?
How do you save a c++ program?
Why is main function important?
what are the decision making statements in C++? Explain if statement with an example?