What are the basics of local (auto) objects?


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

Post New Answer

More C++ General Interview Questions

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 do you mean by persistent and non persistent objects?

1 Answers  


What is basic if statement syntax?

0 Answers  


What is a parameterized type?

1 Answers  


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

0 Answers  






What is the difference between passing by reference and passing a reference?

0 Answers  


What is an incomplete type in c++?

0 Answers  


Describe the syntax of single inheritance in C++?

0 Answers   Fidelity,


Show the declaration for a pointer to function returning long and taking an integer parameter.

0 Answers  


What you mean by early binding and late binding? How it is related to dynamic binding?

1 Answers  


Where is atoi defined?

0 Answers  


Is recursion allowed in inline functions?

0 Answers  


Categories