You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
You are still using NULL so your code is wrong.
If your code is wrong you will get unpredictable results so just fix the code.
How you declare a pointer variable value with empty/null initialized value?
for example of integer value we can declare like this:
then we can check in if statement like this:
What is the initialized empty/null value for pointer variables like foo?
Note that for pointing to the linked list of pointers, we need to initialize the Head variable with NULL (at first step that there is not any node in list) and, after add first node to the list, the Head variable will point to it.
How you declare a pointer variable value with empty/null initialized value?
for example of integer value we can declare like this:
then we can check in if statement like this:
What is the initialized empty/null value for pointer variables like foo?
Note that for pointing to the linked list of pointers, we need to initialize the Head variable with NULL (at first step that there is not any node in list) and, after add first node to the list, the Head variable will point to it.
You don't need to set it to NULL. You can use the same pointer again and again but only once at a time.
If you want more than one pointer then you need to declare more than one.
Pointers in MQL are only pointers to objects.
You can have an array of them if that helps.
Hm, the array of pointers is good solution instead of linked list of pointers, and I will think about it.
Thanks Paul Anscombe and everyone :)Hm, the array of pointers is good solution instead of linked list of pointers, and I will think about it.
Thanks Paul Anscombe and everyone :)you are welcome