Are vectors passed by reference c++?
No Answer is Posted For this Question
Be the First to Post Answer
Explain the uses of static class data?
Do you know the use of vtable?
How java is different from c and c++?
Explain linear search.
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
How can you quickly find the number of elements stored in a dynamic array?
Is c++ vector dynamic?
What are the total number of lines written by you in C/C++? What is the most complicated or valuable program written in C/C++?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list
What should main() return in c and c++?
What is a c++ object?
How can you create a virtual copy constructor?