运行下列程序段,输出的结果是()
structcountry
{intnum;
charname[20];}
x[5]={1,"China",2,"USA",3,"Era/icett4,"England",5,Spanish"};
structcountry*P;
inti=3;
p=x;
prinff("\n%d,%s",(*(P+i)).num,(*(P+i)).name);
A.3,France B.4,England C.5,Spanish D.1,China正确答案B
运行下列程序段,输出的结果是()
structcountry
{intnum;
charname[20];}
x[5]={1,"China",2,"USA",3,"Era/icett4,"England",5,Spanish"};
structcountry*P;
inti=3;
p=x;
prinff("\n%d,%s",(*(P+i)).num,(*(P+i)).name);
A.3,France B.4,England C.5,Spanish D.1,China正确答案B