Forum Discussion
Parisa
New Contributor
5 years agoIndex out of range in for loop
Hi everyone,
I have a code that has a for loop within an if condition. the for loop starts at 0 and is suppose to go up to less than (length_in - 1). length_in is an input and can have max value o...
sstrell
Super Contributor
5 years agoIs this a typo: "for(i-0;..."? Shouldn't it be i=0?
And what's the backslash?
And what's your data type for length_in?
I think you need to show more of the code here and/or fix these potential typos.