What is the different between the following two lines of code in C++?
Line1:
MyClass ** objects = new MyClass * [Number];
Line2
MyClass *  objects [Number];
What is the different between the following two lines of code in C++?
Line1:
MyClass ** objects = new MyClass * [Number];
Line2
MyClass *  objects [Number];
 
    
    The line1 defines a pointer to pointer to object and it contains initializer. The second line (line2) defines an array of pointers to objects. This array is not initialized in any way.
