Why do we use using namespace std in c++?
No Answer is Posted For this Question
Be the First to Post Answer
Define inline function
Is turbo c++ free?
Why do we need pointers?
Explain how we implement exception handling in c++?
Write a C++ program to sort digits of all the 4 digit number and display the sorted 4 digit number
What are the three forms of cin.get() and what are their differences?
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; }
Write a corrected statement in c++ so that the statement will work properly. if (x > 5); y = 2*x; else y += 3+x;
Which operator can not be overloaded in C++?
Comment on local and global scope of a variable.
Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].
How can an improvement in the quality of software be done by try/catch/throw?