template<class T, class X> class Obj {
T my_t;
X my_x;
public:
Obj(T t, X x) : my_t(t), my_x(x) { }
};
Referring to the sample code above, which one of the
following is a valid conversion operator for the type T?
a) T operator T () { return my_t; }
b) T operator(T) const { return my_t; }
c) operator(T) { return my_t; }
d) T operator T (const Obj &obj) { return obj.my_t; }
e) operator T () const { return my_t; }
i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????
What is the stack?
class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.
What is the use of seekg in c++?
Write a program to calculate the BMI of a person using the formula BMI = weight/height2.
Explain the difference between static and dynamic binding of functions?
What is stoi in c++?
What is abstraction c++?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
How are pointers type-cast?
How is objective c different from c++?
Can you explicitly call a destructor on a local variable?