'' examples/manual/proguide/arrays/fixedlen_bounds.bas
''
'' Example extracted from the FreeBASIC Manual
'' from topic 'Fixed-length Arrays'
''
'' See Also: https://www.freebasic.net/wiki/wikka.php?wakka=ProPgFixLenArrays
'' --------

'' This line deliberately contrasts the implicit zero lower bound with b below.
'' FB-LINTER: DISABLE-NEXT-LINE FBL-OPT-003
Dim a(1) As Integer  '' 1-dimensional, 2 elements (0 and 1)
Dim b(0 To 1) As Integer  '' 1-dimensional, 2 elements (0 and 1)
Dim c(5 To 10) As Integer  '' 1-dimensional, 6 elements (5, 6, 7, 8, 9 and 10)

Dim d(1 To 2, 1 To 2) As Integer  '' 2-dimensional, 4 elements: (1,1), (1,2), (2,1), (2,2)
'' This multi-dimensional shorthand is the fixed-bound lesson being shown.
'' FB-LINTER: DISABLE-NEXT-LINE FBL-OPT-003
Dim e(9, 9, 9, 9) As Integer '' 4-dimensional, 10 * 10 * 10 * 10 elements
