Question: /* Make the program so it defines a new function void copy(int destination[], int source[], int n); The function should copy n integers from the
/*
Make the program so it defines a new function
void copy(int destination[], int source[], int n);
The function should copy n integers from the source array
to the destination array.
The main function should read in 10 integers into a malloc'ed
array, declare an array of 10 integers as a local variable,
call the copy function to copy from the first array into
the second.
Define another new function
void print_odds(int a[], int n);
that prints the odds from an array that has n items in it.
In your main, after copying from the malloc'ed array to the local
variable array, call the print_odds function on the local variable
array.
Remember to free the malloc'ed array before the program finishes.
*/
#include
#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
