Domanda di colloquio di NVIDIA

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

Risposta di colloquio

Anonimo

10 dic 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.).