U
Q. What is the output of this program?
#include using namespace std; int add(int p, int q); int main() { int n = 15, m = 16; cout << add(n, m) << endl; return 0; } int add(int p, int q ) { int sum = p + q; p = 20; return p + q; }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. In C++ how many container adopter are provided?
Q. What is the new value of P?
Q. Why reference is not same as a pointer?
Q. Which of the following is not a valid access specifier in C++?
Q. Identify the unary operator.
Q. The same function name having different tasks
Q. Every element in an array is searched against some searching key, special for
Q. class derived: public base1, public base2 { } is an example of
Q. Which of the following language is not supported by C++?
Q. Which of the following is the correct way to define an enumeration in C++?
Discusssion
Login to discuss.