When is the last time you coded in C/C++? What is the most
lines of original C/C++ code you have personally written in
one project? How confident are you in your ability to write
C or C++ without a reference?
Yes this is a right question, but its answer depends on
individual, there is no direct associated answer.
Actually Interviewee want to judge candidate 's coding skills,
If He didn't write any code since past few months, or may be
since past few years.
based on the above interviewee can get the idea about the
coding confidence of candidate.
| Is This Answer Correct ? | 0 Yes | 0 No |
Do class declarations end with a semicolon? Do class method definitions?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ?
When you overload member functions, in what ways must they differ?
What is the auto keyword good for in c++?
Does a derived class inherit or doesn't inherit?
What is c++ prototype?
Is it possible to have a recursive inline function in c++?
Can class objects be passed as function arguments?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
class HasStatic { static int I; }; Referring to the sample code above, what is the appropriate method of defining the member variable "I", and assigning it the value 10, outside of the class declaration? a) HasStatic I = 10; b) int static I = 10; c) static I(10); d) static I = 10; e) int HasStatic::I = 10;
Define the process of handling in case of destructor failure?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?