C++ Concepts that Hard to Grasp

Related Quora QA

  1. Pointers, especially function pointers and multiple pointers (e.g. int(\*)(void\*), void\***)

  2. The const keyword and const correctness (e.g. what is the difference between const char\*, char\* const and const char\* const, and what does void class::member() const; mean?)

  3. Memory allocation (e.g. every pointer new'ed should be deleted, malloc/free should not be mixed with new/delete, when to use delete [] instead of delete, why the C functions are still useful (e.g. expand(), realloc()))

  4. Scope (i.e. that you can use { } on its own to create a new scope for variable names, rather than just as part of if, for etc...)

  5. Switch statements. (e.g. not understanding that they can optimise as well (or better in some cases) than chains of ifs, not understanding fall through and its practical applications (loop unrolling as an example) or that there is a default case)

  6. Calling conventions (e.g. what is the difference between cdecl and stdcall, how would you implement a pascal function, why does it even matter?)

  7. Inheritance and multiple inheritance and, more generally, the entire OO paradigm.

  8. Inline assembler, as it is usually implemented, is not part of C++.

Interview with Bjarne

https://news.codecademy.com/bjarne-stroustrup-interview/

May finally get a hang of what pointer and reference are about.

results matching ""

    No results matching ""