Hello All
Below are the few questions that were asked in an interview. Can anyone please explain to me the answers in an easiest way with examples.
Code:
1) Volatile object
3) Can constructor/destructor be private?
4) Problems normally faced in multithreading
6) Data serialization/de-serialization
7) Layers of TCP/IP
12) Mutable
13) Why do we use virtual destructors?
14) what is a copy constructor and why do we use it?
15) Smart pointers
16) Case where exception handling is not safe
17) Static and non-Static member variables/functions
Thanks