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 a down cast?

662


What is copy constructor? Can we make copy constructor private in c++?

653


why is c++ called oops? Explain

638


What are files in c++?

652


What is c++ mutable?

757






What are manipulators used for?

675


What do you mean by enumerated data type?

628


Which is not a valid keyword a) public b) protected c) guarded

814


Which programming language should I learn first?

627


What is singleton pattern in c++?

604


How the virtual functions maintain the call up?

661


give me an example for testing a program showing the test path .show how the test is important and complex.

2494


what is VOID?

680


What is the most useful programming language?

660


What are smart pointers?

742