Pointers to basic data types

 

Is possible to use pointers to basic data types like int, long, double, etc.?

There are many excellent libraries of C functions and it is very frustrating and disappointing to get a default C code and try to convert it to MQL, in addition to being very tiring.


Examples of pointers in standard C:

int  var = 20;
int  *ip;
ip = &var;     //very simple and usefull


Thanks for some advice

 

MQL doesn't have pointers in the traditional sense (even though they are called such). MQL "pointers" are actually 8 byte object descriptors.

You can create a class containing your basic data types, and use those in conjunction with MQL "pointers".

 
Perhaps you should read the manual. GetPointer

Note

Only class objects have pointers.