有以下程序: #include<stdio.h>main( ){int a=2,b=2,c=2; print{("%d",a/b&c); }程序运行后的输出结果是( )。 0 。 1。 2 。 3。
有以下定义和语句: struct workers {int num;char name[20];char C; struct {int day;int month;int year;)S; }; struct workers w,*pw; pw=&w; 能给w中year成员赋1980的语句是( )。 *pw.year=1980; 。 w.year=1980;。 pw->year=1980。 w.S.year=1980; 。
有以下程序: #include<stdi0.h> #include<string.h>struct A{int a;char b[10];double C;); void f(struct A t); main( ){struct A a={"1001,"ZhangDa",l098,0}; f(a);printf("%d,%S,%6.1f",a.a,a.b,a.c);}void f(struct A t){t.a=1002;strcpy(t.b,"ChangRon9");t.c=1202.0;}程序运行后的输出结果是( )。 1001,ZhangDa,1098.0 。 1002,ChangRong,1202.0。 1001,ChangRong,1098.0。 1002,ZhangDa,1202.0。
以下关于C语言数据类型使用的叙述中错误的是( )。 - 若要准确无误差地表示自然数,应使用整数类型。 若要保存带权多位小数的数据,应使用双精度类型。 若要处理如“人员信息”等含有不同类型的相关数据,应自定义结构体类型。 若只处理“真”和“假”两种逻辑值,应使用逻辑类型 。
若有定义:“double a=22;int i=0,k=18;”,则不符合C语言规定的赋值语句是( )。 a=a++,i++; 。 i=(a+k)<=(i+k);。 i=a%11;。 i=!a; 。
若有定义"int(*pt)[3];",则下列说法正确的是( )。