0% found this document useful (0 votes)
26 views1 page

Priya

This code defines an array called marks that stores integer values. It initially dimensions the array to 3 elements, assigns values to the first 3 elements, and then redimensions the array to 6 elements while preserving existing values. It assigns values to the 4th and 5th elements and then displays the value stored in the 5th element.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views1 page

Priya

This code defines an array called marks that stores integer values. It initially dimensions the array to 3 elements, assigns values to the first 3 elements, and then redimensions the array to 6 elements while preserving existing values. It assigns values to the 4th and 5th elements and then displays the value stored in the 5th element.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Module Module1

Sub Main()
Dim marks() As Integer
ReDim marks(2)
marks(0) = 85
marks(1) = 75
marks(2) = 95
ReDim Preserve marks(5)
marks(4) = 65
marks(5) = 55
Console.WriteLine(marks(5))
Console.ReadKey()
End Sub
End Module

You might also like