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 are Operators and explain with an example?
What are c++ data types?
Why is main an int?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
What is a map in c++?
Explain the difference between struct and class in terms of access modifier.
Difference between pass by value and pass by reference?
What is a sequence in c++?
Why should you learn c++?
What is a type library?
What is &x in c++?
Which is better turbo c++ or dev c++?
What is the difference between an array and a list?
Why c++ is the best language?