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);
Answers were Sorted based on User's Feedback
1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v
Why did you leave your last job?
Who was the creator of c++?
Which software is used to run c++ program?
Is it possible for the objects to read and write themselves?
How do you flush std cout?
What is difference between n and endl in c++?
What are c++ tokens?
Why do we use iterators?
What is an adjust field format flag?
Write a corrected statement in c++ so that the statement will work properly. if (x = y) x = 2*z;
What are the general quetions are in DEna bank manager IT/System interviews?