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);




Answers were Sorted based on User's Feedback



Given the following function definition: int doit(int &x, int y, int &z) { x = 3*x; y = y ..

Answer / cris

a = 15
b = 7
c = 27
d = 23

Is This Answer Correct ?    8 Yes 0 No

Given the following function definition: int doit(int &x, int y, int &z) { x = 3*x; y = y ..

Answer / 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




More C++ General Interview Questions

What is an opaque pointer?

1 Answers  


write the programme that convert a interger to biniry number

1 Answers   Amazon,


find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

0 Answers  


Do the names of parameters have to agree in the prototype, definition, and call to the function?

0 Answers  


How do I download c++?

0 Answers  






What does it mean to declare a member function as static?

0 Answers  


Why do we need function?

0 Answers  


State the difference between pre and post increment/decrement operations.

0 Answers  


Discussion on error handling of C++ .

0 Answers  


List out function which we can call without using object

1 Answers  


Explain virtual class?

0 Answers  


What is searching? Explain linear and binary search.

0 Answers  






Categories