-
-
-
-
-
-
-
-
What is the diffrence between static_cast and dynamic_cast in RTTI
dynamic_cast checks for datatype at runtime but static_cast checks at compilation. Is this the only diffrence b/w them or is there anything else? at the time of programming which shud we prefer to call.
-
-
-
-
Polymorphism
What are the issue one should care implementing polymorphism.
-
Dangers of public unsigned, diamond-shaped inheritance
What is the danger of using public unsigned integers within a class?In a diamond-shaped inheritance hierarchy, how to ensure that only 1 copy of parent is created?
-
Concatenate two circular linked lists
Write a program to concatenate two circular linked lists into a single circular list.
-
Static and friend function in a class
Use of static and friend function in a class
-
Will the program run successfully?
Main(){ int a=2.9; float b=9; cin>>"%d %f">>a>>b; return();}
-
-
Using Inheritance
Using inheritance, which of the following is not alloweda) Changing implementation of operation in parent by the subclassb) Using implementation of operation in parent class by the subclassc) Using attributes in parent class by the subclassd) Having operations is subclass which do not exist in parent classe) None
-
Do Nothing Constructor
What are Default Constructor and Do Nothing Constructor
-
Deallocation of memory
When we allocates the memory using malloc() and calloc(), it returns pointer pointing to the base address to the allocated memory. But while freeing the memory we call free(pointer) thenHow the operation system knows that how much memory is about to be free.
C++ Interview Questions
Ans