Tag Archives: C++

C++, give us the length of our arrays!

I’ve been the teaching assistant of the C++ course for a while, but I haven’t realized that C++ keeps the lengths of the dynamically allocated objects at the run time until this week. The array deletion operator delete[] which calls the destructor of each array element has to know the number of elements in the… Read More »