题目内容

下面哪个是合法的结构体的定义和赋值语句()?

A. struct ord {int x;int y;int z;} struct ord a={1,2,3};
B. struct ord {int x;int y;int z;} struct ord a;a={1,2,3};
C. struct ord {int x;int y;int z;} a={1,2,3};
D. struct {int x;int y;int z;} a;a={1,2,3};

查看答案
更多问题

char ch=’B’; printf(“%c %d\n”,ch,ch); 已知字符A的ACSII码值为65,输出结果是: 。(%c %d之间有一个空格)

main(){ char m; m='B'+32; printf("%c\n",m); }//程序运行后的输出结果是: ______。

一个C语言源程序由若干函数组成,其中至少应含有一个 函数_______。(答案只包括小写的英文,不要写多余的空格)

若变量a,b已定义为int类型并赋值21和55,要求用printf函数以a=21,b=55的形式输出,请写出完整的的输出语句 _______。//注意printf中不要加 \n 以免出错。

答案查题题库