Interview Questions
Interview Questions
----------------
1. Swapping two variables without using third variable.
Answer:
void main()
{
int x = 10, y = 20;
x = x + y;
y = x - y;
x = x - y;
printf("After swapping x = %d and y = %d",x, y);
}
2. virtual constructor
3. static constructor
Answer : The purpose of a constructor is to initialize the contents of an
instance of the class.
Static methods dont have an instance associated with them.
Hence there is no such thing as a static constructor.
-----------------------------------------------------------------------------------
------------------------------------------------
-----------------------------------------------------------------------------------
--------------------------------------------------
Interview Questions(Sowjanya)
------------------------------
constructor
destructor
overriding and overloading
malloc and new
runtime polymorphism
copy constructor
deep copy and shallow copy
vector and list
OOPs concepts.
searching element
IPC
Access specifiers
defference C and C++
inline and macro
NCR Questions(Chaitanya)
-------------------------
about yourself and your experience
message map macro mechanism.
virtual function mechanism.
Object oriented language
About DLL(static linking, dynamic linking)
msxml
crash analysis
windbg tool
where did you involved in your project.
Agile
Multithreading.
Single linked list and circular linked list.
Array and vector
copy constructor.