UVA Solution
Programming Contest Problems and Solutions
Monday, May 16, 2011
To copy a character array, we could write the function
strcopy(s1, s2) /* copies s1 to s2 */
char s1[ ], s2[ ];
{
int i;
for( i = 0; (s2[i] = s1[i]) != '\0'; i++ );
Newer Post
Older Post
Home