printf的函数原型为
int printf(const char * p,...);
可知·printf的返回值为整形,返回的是字符的个数例如:
int main()
{
int count = printf("Hello world\n");
printf(" %d\n",count);
}
可知输出的值为13
printf的函数原型为
int printf(const char * p,...);
可知·printf的返回值为整形,返回的是字符的个数例如:
int main()
{
int count = printf("Hello world\n");
printf(" %d\n",count);
}
可知输出的值为13