Is this poor coding? copying arrays of doubles

This is a discussion on Is this poor coding? copying arrays of doubles within the C Programming forums, part of the General Programming Boards category; In my effort to learn C on my own, I am using Stephen Prata's book; it has some great assignments.
...

Is this poor coding? copying arrays of doubles

In my effort to learn C on my own, I am using Stephen Prata's book; it has some great assignments.

This is the assignment:

Write a program that initializes an array-of-double and then copies the contents of the array into two other arrays. (All three arrays should be declared in the main program.) To make the first copy, use a function with array notation. To make the second copy, use a function with pointer notation and pointer incrementing. Have each function take as arguments the name of the target array and the number of elements to be copied. That is, the function calls would look like this, given the following declarations:

Looks fine, in terms of indenting and all...
A few things:
* You can leave the names on your prototypes (this can save time later if you want to know the ordering of parameters)
* Why is counter in the global scope?
* Why not use double * source, rather than double source[]? You seem to alternate the usage of the two...
* Use more line breaks, eg

Looks fine, in terms of indenting and all...
A few things:
* You can leave the names on your prototypes (this can save time later if you want to know the ordering of parameters)
* Why is counter in the global scope?
* Why not use double * source, rather than double source[]? You seem to alternate the usage of the two...
* Use more line breaks, eg