Can we change the basic meaning of an operator in c++?
No Answer is Posted For this Question
Be the First to Post Answer
Difference between class and structure.
Define pointers?
What kind of problems can be solved by a namespace?
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; }
Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report whether it’s a valid date or not. The program should take account of leap years. You will need to know that a leap year is a year that is exactly divisible by 4, except that century years are only leap years if they are divisible by 400.
What is a manipulator in c++?
Mention the ways in which parameterized can be invoked. Give an example of each.
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What is an Iterator class?
What do you mean by volatile and mutable keywords used in c++?
what is smart pointer & use of the smart pointer ???
Is arr and &arr are same expression for an array?