MQL5 pointer vs C++ pointer

 
What is the difference between MQL5 pointer and C++ pointer?
 
MTx does not have pointers! It only has handles to class objects. GetPointer returns a handle. You can not get a pointer to POD. You can not increment a handle to point to the next array element.
 

What about new operator?  MQL vs C++

MyClass * p1 = new MyClass;   //C++
MyClass * p1 = new MyClass(); // MQL5
 
Overweight:

What about new operator?  MQL vs C++

creates an object pointer 

not to be confused with a memory pointer 

 
Overweight: What about new operator?  MQL vs C++

Perhaps you should read the manual.
   How To Ask Questions The Smart Way. 2004
      How To Interpret Answers.
         RTFM and STFW: How To Tell You've Seriously Screwed Up.

In contrast to C++, the hobject variable from example above is not a pointer to memory, but rather an object descriptor.
          Object Pointers - Data Types - Language Basics - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

Reason: