Grading an algorithm: Readability vs. Compactness
- by amiregelz
Consider the following question in a test \ interview:
Implement the strcpy() function in C: void strcpy(char *destination, char *source);
The strcpy function copies the C string pointed by source into the array pointed by destination, including the terminating null character. Assume that the size of the array pointed by destination is long…