I have in my c++ class member:
char array[24];
What to do with this member in the destructor or may be nothing ? Thanks for advice.
Nothing. You don't allocate space for array manually, so you shouldn't free it manually.
Allocation/deallocation applies for objects constructed on free-store (using malloc/new etc.) the array in the class will have its lifetime same as the object of the class. So you should be concerned about handling the allocation/deallocation of objects and not their members (when members are not pointers).
When a member variable is a pointer and it points to dynamically allocated memory/object then you need to deallocate it (preferably in the destructor).
For example:
class A { };
class B {
A* a;
B() {
a = new A;
}
~B() {
delete a;
}
};