int a,b;scanf("%2d%1d",&a,&b);printf("a=%d",b=%d\n",a,b);程序若输入 1234 为何还是会显示a=12 b=3
%2d 表示占2位 %1d表示占1位
点赞
扫一扫分享朋友圈
二维码
分享
你确定要删除这个问题吗?