Which symbol should be used to pass the object by reference in C++ ?
C++ में रेफरेंस द्वारा ऑब्जेक्ट को पास करने के लिए किस चिन्ह का उपयोग किया जाना चाहिए ?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. &
Explanation
& declares a reference parameter: void f(Box &b).
& से रेफरेंस पैरामीटर बनता है: void f(Box &b)।
More Programming Concepts & Python questions
- What is meant by multiple inheritance ?
- Consider the following C++ statements : int x; int& y = x; The statements y = 25; x = 2*x + 30; update the value of x and y as :
- A generic function can be created using the following :
- Inheritance allows the following in C++ program :
- Which of the following is the scope resolution operator in C++ language ?
- In C++, << operator used for shifting bits can also be used for :