Why do we need constructors in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What is the stack?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
What is while loops?
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; }
Do class declarations end with a semicolon? Do class method definitions?
Differentiate between a constructor and a destructor in c++.
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
Write a function that swaps the values of two integers, using int* as the argument type?
How is memory managed in C++?
make a middle node of doubly linklist to the top of the list
What is the c++ programming language used for?
Write about the role of c++ in the tradeoff of safety vs. Usability?