STL (140)
OOPS (873)
C++ General (2409) C#.net Interview Question A=10 B=5 C=A+B Print C The above will be given in a multiline textbox. You need to parse the above input, store values for A,B&c. And you have to display the value of C.
1 5961for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)
2 4975what is the difference between function template and template of function?explain with example.
2 19537
What is pure oop?
Is stl open source?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
What is polymorphism & list its types in c++?
What size is allocated to the union variable?
Is C++ case sensitive a) False b) Depends on implementation c) True
Can we call a virtual function from a constructor?
Explain all the C++ concepts using examples.
What is endl?
the first character in the variable name must be an a) special symbol b) number c) alphabet
what are the iterator and generic algorithms.
What is the use of map in c++?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
Can a program run without main function?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?