Question: sub program () dim r() as double dim i,j as integer for i = 1 to 2 for j = 1 to 2 r(i,j)=int(rnd()*5) next

sub program ()

dim r() as double

dim i,j as integer

for i = 1 to 2

for j = 1 to 2

r(i,j)=int(rnd()*5)

next j

next i

end sub

program2()

for i=1 to 2

for j=1 to 2

cells(i,j)=r(i,j)

next j

next i

end sub

The question : how can I pass an array from a subroutine to another subroutine after populating it in the same dodule , so i can reuse in another calculation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!