|
6. |
|
Consider the following templated array copy function and
arrays.
template<class S, class T> void copy( S a[], T b[], int n ) {
for(int i = 0; i < n; i++ ) a[i] = b[i];
}
char C[10];
int I[10];
float F[10];
Which of the following calls to copy would produce a compile
time error?
- copy( F, C, 10 );
- copy( I, C, 10 );
- copy( C, F, 10 );
|
|