Question: hello, im trying to do an addItem function by copying the old array into a new array and then adding the elelment into the array
int *addItem(int *Length, int *array) { int *myArray = (int*)calloc( nmemb: *length+1, sizeof(int)); int value, i; printf( format "Please enter a value to add to the array. "); value = readNum(); for(i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
