有以下程序
#include
main()
{ int a,b,c=246; a=c/100%9; b=(-1)&&(-1);
printf("%d,%d\n",a,b); }
输出结果是
A. 2,1 B. 3,
设有以下说明语句
struct stu
{ int a;
float b;
} stutype;
则下面的叙述不正确的是 。
A.struct是结构体类型的关键字
B.struct stu是用户定义的结构体类型
C.stutype是用户定义的结构体类型名
D.a和b都是结构体成员名
写出以下程序的执行结果
#include "stdio.h"
main()
{ int k;
int a[3][3]={1,2,3,4,5,6,7,8,9};
for(k=0;k<3;k++)
printf(“%d”,a[k][2-k]);
}
读下面的程序:
#include
void main()
{static int a[]={1,2,3,4,5};
int *p=a;
printf("%d,",*++p);
printf("%d,",*p++);
}写出运行的结果、