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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy