Don't double post please ! I removed your other post.
You need to use ArrayResize() when you declare a dynamic array.
Alain Verleyen:
sorry. i made it work with declaring a number in [] ;
Don't double post please ! I removed your other post.
You need to use ArrayResize() when you declare a dynamic array.
Cristi Margaritescu:
int c[];
c[1]=1;
print(c[1]);
it prints c[1] as being zero.
- Use Alt-S for code please!
- int c[] creates an array with size 0 - you can't assign any value (so far)
- int c[1] creates an empty array with size 1!
- In the editor press F1 and search for ArrayResize() - start reading!
thanks for the quick replies.

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
int c[];
c[1]=1;
print(c[1]);
it prints c[1] as being zero.