






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







int array[] = {1,2,3,4}; Elements Index
Elements Index 1 2 3 4 0 1 2 3 1 2 5 3 4 0 1 2 3 4
//Declaration of the variables to be used
//Displaying the array before insertion
//Moving the elements
LA[k] = item; //Insertion of the new element on the given index