1、%*d ,The *
is
used to skip an input without putting it in any variable.
在scanf中使用的时候,是1整数但不赋给任何变量
int a=23,b=5,c=9;
scanf("%*d%d%d",&a,&b,&c);
printf("a is %d,b is %d, c is %d",a,b,c);
运行结果如下是
4
1
7
a is 1,b is 7, c is 9请按任意键继续. . .
1、%*d ,The *
is
used to skip an input without putting it in any variable.
在scanf中使用的时候,是1整数但不赋给任何变量
int a=23,b=5,c=9;
scanf("%*d%d%d",&a,&b,&c);
printf("a is %d,b is %d, c is %d",a,b,c);
运行结果如下是
4
1
7
a is 1,b is 7, c is 9请按任意键继续. . .