NVIDIA interview question

Difference between a Struct and a Class in C++.

Interview Answer

Anonymous

10 Dec 2016

Was specific in how the memory is laid out for both with regard to members and member functions. Commented on default privacy of fields, etc. Added comment on difference between structs in c vs. c++ (struct namespace, tendency to use typedefs more in C for name resolution, etc.).