Are vectors faster than arrays?


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

Post New Answer

More C++ General Interview Questions

What is Destructor in C++?

0 Answers  


what is an array

17 Answers  


Write a program that read 2o numbers in and array and output the second largest number. Can anybody help??

7 Answers  


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,


Consider a c++ template funtion template<class T> T& Add(T a, T b){return a+b ;} if this function is called as T c = Add("SAM", "SUNG"); what will happen? What is the problem in the template declaration/ How to solve the problem.

7 Answers   LG, Samsung,






Explain container class.

0 Answers  


What is c++ 11 and c++ 14?

0 Answers  


Define friend function.

0 Answers  


What is the latest version on c++?

0 Answers  


What is size of a empty class?

7 Answers   Microsoft, Tata Elxsi, Wipro,


If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?

0 Answers  


What do you mean by funtion prototype?

0 Answers  


Categories