Computer Science, asked by sameerahmed1252, 11 months ago

What did you understand by array in visual basic programming

Answers

Answered by munnanagpure26
0

Answer:

An array is a set of values , which are termed elements , that are logically related to each other . For, Example an array may consist of ahe number of students in each grade in a grammar school

Answered by ridhimakh1219
0

Array in visual basic programming

Explanation:

Arrays

Arrays are defined as collection of related data.  

A variable must hold single element at once but Arrays are used to hold multiple elements.It stores elements of the same data type. Each element of an array is accessed by an index value.The first index value is zero.

The syntax to declare an array is as follows:

Dim arrayName(size) As dataType

Example:

Dim name(5) As String

Program

Dim name(5) As String

name(0) = "John"

name(1) = "Battlefield"

name(2) = "Cott"

name(3) = "Mana"

name(4) = "Rolly

For Each strName As String In name

Console.WriteLine(strName)

Next

Console.ReadLine()

Similar questions