What is a c++ map?
No Answer is Posted For this Question
Be the First to Post Answer
What is realloc() and free()? What is difference between them?
How are the features of c++ different from c?
What are pointer-to-members in C++? Give their syntax.
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 friend class?
What do you mean by enumerated data type?
What are templates? where we should use it?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
Can a constructor be private?
When a function is made inline. Write the situation where inline functions may not work.
What is class invariant in c++?
What is c++ namespace?