printf()를 사용하여 출력할 문자열의 글자 수를 지정하는 방법이 있습니까? 출력할 문자열의 문자 수를 지정하는 방법이 있습니까(의 소수 자릿수와 유사).ints)? printf ("Here are the first 8 chars: %s\n", "A string that is more than 8 chars"); 인쇄를 원하십니까?Here are the first 8 chars: A string기본적인 방법은 다음과 같습니다. printf ("Here are the first 8 chars: %.8s\n", "A string that is more than 8 chars"); 다른 방법(종종 더 유용한 방법)은 다음과 같습니다. printf ("Here are the first %d chars: %...