노랑이 님이 쓰신 글 :
:
:
:
:
:
:
: *다음 프로그램을 포인터를 사용하여 재 작성 하는 문제예요...
:
: #include
: void strcat (char.s[], char t[]);
: void main()
: {
: char a[]= "test data" ;
: char b[]= "a and b" ;
: strcat (a, b);
: printf ("%s\n", a);
: }
: void strcat (char s[], char t[]) /*문자열 연결*/
: {
: int i, j ;
: i = j = 0 ;
: while (s[i] ! = '\0')
: i++;
: while ((s[i++] = t[ j++]) ! = '\0')
: ;
: }
:
:
:
|