This code is really long, so I really can't post all of it
Code:
int print_Array(int x[]);
int exchange(int x[], int y[]);
int sort_Array(int x[], int flag);
int counter (int x[], int flag);
int get_menu_choice (void);
main()
{
int array_A[100], array_B[100];
srand(997);
Large amounts of code here allowing for manipulation of the 2
arrays. Lots of misc stuff like counting the number of even/odd
values, sorting the arrays, ect.
exchange(array_A[] , array_B[])'
return (0); /* indicate program ended successfully */
}
Lots of functions here that perform the actions mentioned aboe
int exchange(int num1[], int num2[])
{
int forflag = 0;
int temp[100];
for( forflag = 0, forflag <100, forflag++)
{
temp[forflag] = num1[forflag];
num1[forflag] = num2[forflag];
num2[forflag] = temp[forflag];
}
return(0);
}
Ehh, I really hope this is readable. Posting the whole code would have been too much so i cut a lot of it out. Hope i didn't cut too much.