C语言中使用 scanf 读取键盘输入的两个整数
以下代码片段执行后,当用户在键盘输入 '3,4' 并按回车后,能正确读入并分别存储在 a,b 中的是:
A int a,b;
scanf('%d%d',&a,&b);
B int a,b;
scanf('%d,%d',&a,&b);
C int a,b;
scanf ('a=%d,b=%d',&a,&b);
D int a,b;
scanf('%f,%f',&a,&b);
原文地址: https://www.cveoy.top/t/topic/pkoE 著作权归作者所有。请勿转载和采集!