Write a program using display() function which takes two arguments.
No Answer is Posted For this Question
Be the First to Post Answer
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; }
What is slicing?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is c++ array?
Which of the following operator cannot be overloaded?
Explain about profiling?
How does class accomplish data hiding in c++?
What are different types of polymorphism supported by C++
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
How would you implement a substr() function that extracts a sub string from a given string?
How do I run a program in notepad ++?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;