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
Why do we use pointers in c++?
What is the use of turbo c++?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
What is a syntax in c++?
Which software is best for c++ programming?
Is it possible for the objects to read and write themselves?
Write a struct time where integer m, h, s are its members?
What is the difference between map and hashmap in c++?
Does c++ have arraylist?
Write a program to add three numbers in C++ utilizing classes.
What is std :: flush?
What are features of c++?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
What is a constant? Explain with an example.
Declare a class vehicle and make it an abstract data type.