C and C++ Quiz: pointers, memory and classes
Pointers and addresses, references, stack and heap, malloc and free, new and delete, memory leaks, constructors, destructors, const and the null pointer: the key notions of C and C++.
Question preview
- In the statement p = &x ; what does the & operator applied to the variable x produce?
- In C++, what does the declaration int &r = x ; do?
- In C and C++, where are the local variables of a function placed, apart from dynamic allocation?
… and 7 more questions to discover by playing.