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 the difference between #import and #include in c++?
Can we change the basic meaning of an operator in c++?
Incase of a function declaration, what is extern means?
Is main a class in c++?
What kind of problems can be solved by a namespace?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
Const char *p , char const *p What is the difference between the above two?
Discussion on error handling of C++ .
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
What is std namespace in c++?
What is the default access level?
What is function overloading in C++?
What is the keyword auto for?
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?
How to defines the function in c++?