char s[80] = "123", s1[80]; strcat ( s, "0" ); strcpy ( s1, s ); strcat ( s, s1 ); printf ( "%s", s );
char s[80] = "123", s1[10] = "0", s2[80]; strcpy ( s2, s ); s1[0] = s[1]; strcat ( s, s1 ); strcat ( s, s2 ); s1[0] = s[2]; strcat ( s, s1 ); puts ( s );
char s[80] = "12345"; int n; n = strlen(s) + strlen("456"); printf ( "%d", n );
char s[80] = "123456789"; char s1[80] = "abcdef"; strcpy ( s, s+4 ); s[2] = '\0'; strcat ( s, "0" ); strcpy ( s1, s1+2 ); s1[3] = '\0'; strcat ( s, s1 ); puts ( s );
char s[80] = "123456"; char q[80] = "abc"; strcpy ( s+1, s+4 ); strcat ( s, q+1 ); strcpy ( q+1, s ); puts ( q );
char s[80] = "123456789"; int n; strcpy ( s, s+2 ); n = strchr ( s, '6' ) - s; printf ( "%d", n );
char s[80] = "123456789"; char *p; p = strstr ( s, "456" ); strcpy ( p+2, p+5 ); puts ( s );
char s[80] = "123456"; while ( strlen(s) > 0 ) { strcpy ( s, s+2 ); printf ( "1" ); }
int c = 0; char *p; while ( 1 ) { ... if ( ! p ) break; c ++; strcpy ( S, p+2 ); }
c = 0; for ( k=0; k<strlen(S); k++ ) if ( S[k] == '0' ) { ... }
char Q[] = "0123456789"; char S[20] = "0000000000"; int k; for ( k=0; k<10; k++ ) { ... }