比较scanf的返回值与printf的返回值

scanf 函数 : 1 .scanf()函数有返回值且为int型。 2.scanf()函数返回的值为:正确按指定格式输入变量的个数;也即能正确接收到值的变量个数。 例如 : #include<stdio.h>        int main()        {         int a;         int b;         printf("%d\n", scanf("%d%d",&
相关文章
相关标签/搜索