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
Incase of a function declaration, what is extern means?
What is an object in c++?
How do you find out if a linked-list has an end?
What is the difference between mutex and binary semaphore?
Explain the operation of overloading of an assignment operator.
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
How do you define/declare constants in c++?
Which one is a preferred language C or C++? Why?
What is copy constructor? Can we make copy constructor private in c++?
How would you differentiate between a pre and post increment operators while overloading?
Is std :: string immutable?
What are keywords in c++?
Explain differences between alloc() and free()?
How many types of classes are there in c++?
Does std endl flush?