NCERTSTUDY Notes For Class 12-4. Information Pratice-Visual Basic Control Structures
NCERTSTUDY Notes For Class 12-4. Information Pratice-Visual Basic Control Structures
Statement 1
Statement 2
Statement 3
Yes Condition No
Statement 1 Statement 2
Statement 3
FALSE
Condition
TRUE
Statement 1
Statement 2
1) Fixed / Static size Array: Those arrays in which the no. of elements is fixed and does not vary.
2) Dynamic size Array : Dynamic arrays are those arrays whose no. of elements can be varied.
Declaration of Array:
Fixed size - Dim ArrayName(size) as DataType Eg: Dim arr(4) as Integer
Dynamic size - Dim ArrayName( ) as DataType Eg: Dim arr1( ) as Integer
If an array is declared as arr(4) it means we count these element from 0 to 4 ie. 5 elements, so this
is known as Zero – based Indexing.
And if an array is declared as arr(1 to 5) it means we count these element from 1 to 5 ie. 5 elements,
so this is known as One – based Indexing.
***