Adding value to array

 

//Hello,


//if say I create a list if a 100 values in this way

int list [100];

// then assign the first value of the list in this way

list[0]=10;//IS THIS CORRECT FOR ADDING A VALUE INTO AN ARRAY????

//then run a For loop from i=1 to say less than 100,generate and add value to list from index 1 to 99.


/* The list from 1 to 99 works , what I cannot figure out is if the index 0 value of 10 is added in the list[100] of or a separate list of list[0] size was created.*/ 

 
All your questions and some more are answered here: https://www.mql5.com/en/docs/basis/variables#array_define
Documentation on MQL5: Language Basics / Variables
Documentation on MQL5: Language Basics / Variables
  • www.mql5.com
Variables - Language Basics - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
HAD3BE:

Do not double post!!!

I have deleted your other post.