gets, puts
#include<stdio.h> puts("문자열을 입력하세요"); puts(array2); // 문자열 출력 |
strcat()
#include<stdio.h> int main(void) printf("첫 번째 문자열 입력: "); printf("두 번째 문자열 입력: "); strcat(array1, array2); // 문자열 결합 printf("결합된 문자열 출력: "); |
strcmp()
#include<stdio.h> int main(void) result1 = strcmp(array1, array2); // 1 출력 printf("%d %d %d \n", result1, result2, result3); |
strchr(), strstr()
#include<stdio.h> int main(void) p1 = strchr(array1, 'a'); printf("문자 a의 위치 : %x \n", p1); |
sscanf(), sprintf()
#include<stdio.h> int main(void) |