admin@onlinelearningcenter.in (+91) 7 999 01 02 03 Get started with 45 Hours of Free course right now 

WAP To split the array and store in different array

Jaivik Shah
6 Posts

Take an array of 10 elements. Split it into middle and store the elements in two dfferent arrays

Example:

INITIAL array :

int a = {58,24,13,15,63,9,8,81,1,78}

 

 After spliting :

int newArr1 = {58,24,13,15,63}
int newArr2 = {9,8,81,1,78}

 

 

Published By : Jaivik Shah
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments