函数的链式访问有趣代码

int main()
{
printf("%d\n", printf("%d", printf("%d", 43)));
system(“pause”);
return 0;
}

打印结果为1234
因为printf函数的返回为打印字符的个数

猜你喜欢

转载自blog.csdn.net/belongHWL/article/details/90140791