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 a down cast?
What is copy constructor? Can we make copy constructor private in c++?
why is c++ called oops? Explain
What are files in c++?
What is c++ mutable?
What are manipulators used for?
What do you mean by enumerated data type?
Which is not a valid keyword a) public b) protected c) guarded
Which programming language should I learn first?
What is singleton pattern in c++?
How the virtual functions maintain the call up?
give me an example for testing a program showing the test path .show how the test is important and complex.
what is VOID?
What is the most useful programming language?
What are smart pointers?