(1)#include (2)char a=“Beijing”; (3)main( ) (4){ (5)printf(“%s is one city in China.\n”,a); (6)pl( ); (7)p2( ); (8)} (9

admin2014-08-29  29

问题 (1)#include
(2)char a=“Beijing”;
(3)main(    )
(4){
(5)printf(“%s is one city in China.\n”,a);
(6)pl(    );
(7)p2(    );
(8)}
(9)pl(    )
(10){
(11)printf(“%s is one of the biggest city”,a);
(12)retllrn;
(13)}
(14)p20
(15){
(16)printf(“in the wor

选项

答案错误的行是:(2)改为:char*a=“Beijing”:

解析 如果a为字符型变量只能存储一个字符,而字符指针才可以存储一个字符串。
转载请注明原文地址:https://jikaoti.com/ti/zl9fFFFM
0

随机试题
最新回复(0)