This program is not working. The question and its answer is there below.
Please tell what is wrong with this program ?
Q.Write a program using user-defined function which accepts an integer array and its size as arguments and assign the elements into a two dimensional array of integers in the following format: If the array is 1,2,3,4,5,6, the resultant 2D array is
1 2 3 4 5 6
1 2 3 4 5 0
1 2 3 4 0 0
1 2 3 0 0 0
1 2 0 0 0 0
1 0 0 0 0 0
I am using codeblocks.
This code force closes after accepting the series for 1-d array.
I have already made a lot of changes and also tried to run it on an online compiler but it still does not work.