C Interview Questions

5,480 c interview questions shared by candidates

Suppose we have class A that is publicly inherited from classes B and C. Also class A contains member variable of class D. We know that constructor of class B throws exception. If we would create object of class A, in which order constructors and destructors will be called?
avatar

C++ Developer

Interviewed at NVIDIA

4.5
Aug 22, 2018

Suppose we have class A that is publicly inherited from classes B and C. Also class A contains member variable of class D. We know that constructor of class B throws exception. If we would create object of class A, in which order constructors and destructors will be called?

Viewing 1811 - 1820 interview questions

Glassdoor has 5,480 interview questions and reports from C interviews. Prepare for your interview. Get hired. Love your job.