- Why do we need to write Copy constructor when compiler provides a default Copy constructor?
- What is conversion constructor?
- What is difference between structure and class ?
- Difference between stack and heap in terms of declared variables?
- What are the advantages of new and delete over malloc and free?
- What are differnt casting availble in C++ ?
- What is upcasting and why upcasting is implicit in C++?
- what happens to the memory alloted after the exception is raised???
- How to declare a constant pointer and a pointer to constant variable
- Describe how runtime polymorphism is achieved by the compliler?
- explain the syntax (int* &i).
- if we declare a class without any member variable and with out any function then what could be the size of such class ? Now if we declare only virtual function then what would be the size?
- what is a register?
- What is mutable data?
- We have integer array which is having repeated entries i.e. arr[] = {1,2,2,2,3,3,4,5,5,6,4,1} Write an optimum code to get the unique value?
- Write the code to insert a node in sorted doubly linked list
- Write your own printf() function?
- What is a conversion operator?
- Take the example of traffic and explain polymorphism ( not in C++ terminology)
Categories
Tuesday, October 7, 2008
Recently asked C++ interview questions
Subscribe to:
Post Comments (Atom)



1 comments:
I would like to thank my co-author Mr. Anuj for his invaluable support. This post is written by him and here he shared his experience of recently attended interviews.
Thanks,
Sumit
Post a Comment