근데 널문자 없어도 무한으로 출력안하는데 어케된일?

예를들어

int arr[3];
int *ptr;
ptr = &arr[0];
*ptr='A';
printf("%s",ptr);