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
What is recursion?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
What do you mean by “this” pointer?
What are the effects after calling the delete this operator ?
Which programming language is best?
What are shallow and deep copy?
What are files in c++?
Is the declaration of a class its interface or its implementation?
What is the main purpose of overloading operators?
What are function prototypes?
Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.
How the virtual functions maintain the call up?
Is c++ still being used?
What is prototype in c++ with example?
Does c++ have a hash table?