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
Const char *p , char const *p What is the difference between the above two?
Write my own zero-argument manipulator that should work same as hex?
Can I learn c++ without learning c?
What are the types of container classes?
How can I learn c++ easily?
Why do we use constructor?
How to declare a pointer to an array of integers?
Where are setjmp and longjmp used in c++?
Why are pointers not used in c++?
Difference between class and structure.
What is nested class in c++?
what are Operators and explain with an example?
How should a contructor handle a failure?
What is the best book for c++ beginners?
What is the use of map in c++?