Professional Documents
Culture Documents
Write A C Programme (1-D Array) Store Some Elements
Write A C Programme (1-D Array) Store Some Elements
Accept key
& split from that point. Add the first half to the end of second half*/
#include <stdio.h>
void main ()
{
int number[30];
int i,n,a,j;
printf ("Enter the position of the element to split the array \n");
scanf ("%d",&a);
/*-------------------------------------------------
Output
Enter the value of n
5
enter the numbers
30
10
40
50
60
Enter the position of the element to split the array
2
The resultant array is
40
50
60
30
10
----------------------------------------------------------*/