'16) write a program to assign 0 to 10 in to a dynamic array
ReDim x(0)
For i=0 To 10 Step 1
ReDim Preserve x(i)
x(i) = i
Next
For j=0 To UBound(x) Step 1
WScript.Echo x(j)
Next
ReDim x(0)
For i=0 To 10 Step 1
ReDim Preserve x(i)
x(i) = i
Next
For j=0 To UBound(x) Step 1
WScript.Echo x(j)
Next
No comments:
Post a Comment