0

i have a prb here, i have been asked to make a procedure which recieve an array of integers,its lenght, and two integers X and Y as parameters. now the procedure needs to find X in the array and put Y ahead of it ( Y is not in the array) the prb is that i dont know how to put an element inside an array while its dimension is already fixed! is there need of declaring the array dynamic? plz help.

thanks in advance