I want to create a program to insert an element into a 2d array. User will wnter the array then element to be inserted its both row and column position.
We have to shift elements of the array after position given and discard the last element.
U can't convert it into 1d array.
Size of array is flexible
suppose size of array is 3,3
0 1 2
3 4 6
7 8 9
element to be inserted is 5 at 2,3
array after insertion
0 1 2
3 4 5
6 7 8
I think the shifting will be done using pointers. I made a program but i got stuck. Can anyone help me??