Cpp Set-12

Set-12 what is RTTI? which are advance type casting operators? Difference between static_cast and dynanic_cast what is virtual function table what is virtual function pointer Why we cannot declare constructor as virtual? what is the need to declare distructor as virtual? Difference between function overloading and function overriding.

Cpp Set-09

Set-9 what are storage classes? what are different scopes of element in cpp? explain static keyword. what is instance variable, class level variable? what is instance method, class level method? why static member function do not get this pointer? can we declare static member function as constant? what is anonymous class? what is singleton class … Continue reading Cpp Set-09

Cpp Set-05

Set-05   what is aggregate type? explain constructor member initializer list. what is constant member function? explain mutable keyword explain reference in cpp. difference between pointer and reference. Top 1. what is aggregate type?. According to c++03 specification, by default class is not considered as aggregate type/class.In following cases, class can be considered as aggregate … Continue reading Cpp Set-05

Cpp Set-04

Set-04 what is function overloading? what is name mangling? explain extern "c" explain default argument. what is macro? difference between macro and inline? what are different types of errors? explain words - declaration, definition, initialization, assignment. what is construtcor? types of constructors. what is constructor chaining? Top 01. what is function overloading? If implementation of … Continue reading Cpp Set-04

Cpp Set-03

Explain pointers. Explain constant keywordwhat is L-value and R-value Explain this pointer 1. Explain pointers. It is a derived data type.If we want to store address of another variable/object/array/function/pointer function then we should use pointer.pointer is a variable which stores address of another variable.Pointer declaration: int *ptr; (un-initialized pointer) Employee *ptr; (un-initialized pointer)uninitialized pointer is … Continue reading Cpp Set-03