R
Q. Which of the following is true about constructors in C++?
Constructors in C++ have the same name as the class, do not have a return type, and are automatically invoked when an object is instantiated.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Which of the following function is used to open a file in C++?
Q. What is the index of the last element of an array with 5 elements?
Q. What operation can be performed by destructor?
Q. What will be the output of the following code? int a = 5; int b = 2; cout << a / b;
Q. Classes that can be used to instantiate objects are called?
Q. Choose the correct option. (i) extern int k; (ii) int k;
Q. What is the output of the following C++ code?
Q. The elements in a structure are also called _______
Q. Which of the following is not a valid access specifier in C++?
Discusssion
Login to discuss.