So we say there is a base class A, and there are class B and class C that are inheritance of class A.
Now I want to create an array of pointers points to either B object or C object.
How can I do this?
Pointers to a public base can point to objects derived of that base. Therefore you can do what you want like this:
A* arr[N];