|
Question |
Rating |
View Answer |
|
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array? How can you find the nodes with repetetive data in a linked list?
|
|
View Answer |
|
What is cloning?
|
|
View Answer |
|
What is a smart pointer?
|
|
View Answer |
|
When should you use multiple inheritance?
|
|
View Answer |
|
What methods can be overridden in Java?
|
|
View Answer |
|
What do you meant by active and passive objects |
|
View Answer |
|
What is a default constructor?
|
|
View Answer |
|
What is a Null object?
|
|
View Answer |
|
How can a '::' operator be used as unary operator?
|
|
View Answer |
|
What methods can be overridden in Java?
|
|
View Answer |
|
What is public, protected, private?
|
|
View Answer |
|
What is the difference between new/delete and malloc/free?
|
|
View Answer |
|
What does extern mean in a function declaration?
|
|
View Answer |
|
How do you find out if a linked-list has an end? (i.e. the list is not a cycle)
|
|
View Answer |
|
What is the difference between Stack and Queue?
|
|
View Answer |
|
Will it execute or not?
C++ Interview Questions and Answers
(Continued from previous question...)
Will it execute or not?
void main() { char *cptr = 0?2000; long *lptr = 0?2000; cptr++; lptr++; printf(” %x %x”, cptr, lptr); }Will it execute or not?
|
|
View Answer |
|
How do you write a function that can reverse a linked-list?
|
|
View Answer |
|
What is the use of ‘using’ declaration.
|
|
View Answer |
|
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator.
|
|
View Answer |
|
What can I safely assume about the initial values of variables which are not explicitly initialized?
|
|
View Answer |