4. ´ÙÀ½ ÇÁ·Î±×·¥ÀÇ Ãâ·ÂÀ» ½á¶ó. ´Ü data º¯¼öÀÇ ÃʱⰪÀ» ÀÚ±â Çйø¿¡ ¸Âµµ·Ï º¯°æÇ϶ó. #include #include void test4(char *p) { int pos; strcat(p,"XXX"); strcpy(p+5,"YYY"); pos = strlen(p)/2; p[pos] = 'Z'; } main() { char data[20]; /* ÇйøÀÌ 9817589 ÀÎ °æ¿ì óÀ½ ¼ýÀÚ ¿©¼¸°³ ÀÌ¿ë */ strcpy(data,"981758"); test4(data); printf("%s\n",data); }