One-dimensional array variables. It presents two different representations of array variables. The first approach from above shows how the lower bound starts from zero (0 … n). Notice that the total number of elements in the array is n+1. This is the case with many modern computer languages. The second approach shows the case of VB, were the index of an array variable may start from any value and end with any value that is bigger than the first (n … n+m; m>n). Notice that the total number of elements in the array is m+1.
Paul A. Gagniuc. An Introduction to Programming Languages: Simultaneous Learning in Multiple Coding Environments. Synthesis Lectures on Computer Science. Springer International Publishing, 2023, pp. 1-280.
Paul A. Gagniuc. An Introduction to Programming Languages: Simultaneous Learning in Multiple Coding Environments. Synthesis Lectures on Computer Science. Springer International Publishing, 2023, pp. 1-280.