CPP Array Indexing Problem

September 30, 2015 458 views

I have a 230 long character array called name name[230] which indexes correctly if i use and absolute value for the index like name[0] but does not if i use a variable for an index like name[characterindex] even though the variable character index is set to the right value. I get for the value of name[characterindex] what seems to be random data.

Be the first one to answer this question.