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
Explain function overloading
How do you write a function that can reverse a linked-list?
Why do we need runtime polymorphism in c++?
What problems might the following macro bring to the application?
What are the new features that iso/ansi c++ has added to original c++ specifications?
Can I run c program in turbo c++?
How can you link a c program with a c function?
Which c++ operator cannot overload?
an integer constant must have atleast one a) character b) digit c) decimal point
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
Explain binary search.
What is c++ library?
Write a struct time where integer m, h, s are its members?
Explain storage qualifiers in c++.
What is a local variable?