All mock tests are FREE till 31 December — register to save your progress
Unit 3 · Programming Concepts & Python HTET 2021 PGT Computer Science

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