#include <stdio.h>
#include <stdlib.h>
int main()
{
char *str="Helloworld";
printf("%d",printf("%s",str));
return 0;
}
출력은 기타 제로추가 제로 출력으로
#include <stdio.h>
#include <stdlib.h>
int main()
{
char *str="Helloworld";
printf("%d",printf("%s",str));
return 0;
}
출력은 기타 제로추가 제로 출력으로
을 제공 곳에서 대신 HelloWorld1에
의 Helloworld10에게 무엇입니까? 1은 무엇으로부터 왔는가?
the return value of functions of the printf
family is the number of characters outputted (sprintf
과 같은 변형에 대해서는 최종 \0
제외). Helloworld
은 길이가 10입니다.
printf는 쓰여진 문자 수를 반환합니다.
(최종 '\ 0'은 출력되지 않습니다.) – pmg
@pmg : 네 말이 맞아요, 대답을 약간 수정했습니다. – Benoit