Explain "const" reference arguments in function?
Answer / Parmeshwar Oraon
A const reference is a reference variable that refers to a constant object. It provides an efficient way of passing large objects as arguments to functions, without the need to create a copy of the object. The advantage of using const references over regular references is that they prevent accidental modification of the original object by the function.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why is c++ still popular?
Do we have to use initialization list in spite of the assignment in constructors?
What is setw manipulator in c++?
Differentiate between an array and a list?
How to create a pure virtual function?
You're given an array containing both positive and negative integers and required to find the sub-array with the largest sum (O(N) a la KBL). Write a routine in C for the above.
Write bites in Turbo c++ Header ("Include") Files.
What is c++ manipulator?
How to implement is-a and has-a class relationships?
What is the use of c++ programming language in real life?
What is a type library?
write a program that takes two numbers from user that prints the smallest number