What does the function given here do when called if both the ampersands (&)are removed? Why?
void func(int& x,int& y)
{
int t = x;
x = y;
y = t;
}
Correct Answer:
Verified
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q13: There is no problem with the compiler
Q14: A program should have all of its
Q15: The call-by-reference mechanism is specified in the
Q16: The position of the ampersand in the
Q17: Default arguments can be used with either
Q19: There is no problem with these two
Q20: The compiler ha no problem distinguishing these
Q21: Write a stub for the function whose
Q22: Which of the following overloadings will be
Q23: Which of the following function declarations with
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents