What is an explicit constructor?
Answer / nimish singh
A conversion constructor declared with the explicit keyword. The compiler does not use an explicit constructor to implement an implied conversion of types. It's purpose is reserved explicitly for construction.
| Is This Answer Correct ? | 0 Yes | 0 No |
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1
Will a catch statement catch a derived exception if it is looking for the base class?
What is c++ hash?
what is the basic concept of c++(object oriented programing)
How const functions will be treated by compiler?
Consider a c++ template funtion template<class T> T& Add(T a, T b){return a+b ;} if this function is called as T c = Add("SAM", "SUNG"); what will happen? What is the problem in the template declaration/ How to solve the problem.
What is the difference between passing by reference and passing a reference?
What is the difference between delegation and implemented-in-terms-of?
What is data type in c++?
What is object slicing and how can we prevent it?
Define stacks. Provide an example where they are useful.
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?