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
What is meant by entry controlled loop? What all C++ loops are exit controlled?
What is function overloading in C++?
Is java a c++?
What is java and c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
Explain dangling pointer.
Can notepad ++ run c++?
What is near, far and huge pointers? How many bytes are occupied by them?
write a porgram in c++ that reads an integer and print the biggest digit in the number
How do you compile the source code with your compiler?
What is a sequence in c++?
Differences between private, protected and public and give examples.