Can we overload operator in c++?
No Answer is Posted For this Question
Be the First to Post Answer
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; }
Explain deep copy and a shallow copy?
What is the difference between new/delete and malloc/free?
What is the use of "new" operator?
What is encapsulation in c++?
What is #include iostream?
Why would you use pointers in c++?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
Differentiate between declaration and definition.
wap to accept 10 numbers & display the number of odd and even numbers??
What is std namespace in c++?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?