C语言 字符数组 输入语句 - 哪个正确?
有两个字符数组 a, b,以下正确的输入语句是 ( )
A. gets(a,b); B. scanf('%s,%s',a,b); C. scanf('%s%s',a,b); D. gets('a'); gets('b');
答案: C. scanf('%s%s',a,b);
原文地址: https://www.cveoy.top/t/topic/necQ 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
有两个字符数组 a, b,以下正确的输入语句是 ( )
A. gets(a,b); B. scanf('%s,%s',a,b); C. scanf('%s%s',a,b); D. gets('a'); gets('b');
答案: C. scanf('%s%s',a,b);
原文地址: https://www.cveoy.top/t/topic/necQ 著作权归作者所有。请勿转载和采集!