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 conditions when using boolean operators?
What is c++ library?
How do I use turbo c++?
When we use Abstract Class and when we use Interface?where we will implement in real time?
What is the difference between passing by reference and passing a reference?
How a macro differs from a template?
What is runtime errors c++?
What will the line of code below print out and why?
Explain friend class?
How do you clear a set in c++?
What are special characters c++?
Why is c++ considered difficult?
What is a constructor and how is it called?
Tell me can a pure virtual function have an implementation?
How the endl and setw manipulator works?