123456789101112131415161718
void printArr(int arr []) { for (int i = 0 ; i < n ; i++) { printf("%d ", arr[i]); } printf("\n"); } int main() { int c[6] = {1, 3, 2, 5, 0, 7}; int n = sizeof(c)/sizeof(int); printArr(c); getchar(); getchar(); }
void printArr(int* arr)