what are Operators and explain with an example?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

0 Answers  


Do we have to use initialization list in spite of the assignment in constructors?

0 Answers  


What is a template in c++?

0 Answers  


How would you obtain segment and offset addresses from a far address of a memory location?

0 Answers  


How many different levels of pointers are there?

0 Answers   Genpact,






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; }

1 Answers   Quark,


What is binary object model?

0 Answers  


Define a pdb file.

0 Answers  


What is the syntax for a for loop?

0 Answers  


What are the manipulators in c++?

0 Answers  


What are mutator methods in c++?

0 Answers  


What operators can you overload in c++?

0 Answers  


Categories