Pergunta de entrevista da empresa WD

What are the differences between C++ and C?

Resposta da entrevista

Sigiloso

22 de nov. de 2019

From a practical programmers perspective, C does not have destructors so you can leak memory very easily if you are not careful. Additionally there are no classes, member functions, and of course no virtual dispatching. From experience, C tends* to use smaller program space than C++ as well. Some technical differences are a lack of pointers, different meaning in `auto`, and no templates (ofc there are more differences on top of that though).