#include <stdio.h>
#include <string.h>
void main()
{
char str[10];
strcpy(str,"string");
printf("%s\n",str);
str[1]='A';
printf("%s\n',str);
}
이렇게 하고 저장하고 컴파일 하려니까,,글쎄..
knut% ls
test test.c test2.c
knut% gcc -o test2 test2.c
test2.c:9: unterminated string or character constant
test2.c:9: possible real start of unterminated constant
knut%
이렇게