|
本题添加时间:2023/12/3 14:45:00 |
|
圆梦客服:王老师 19139051760(微信同号) 19139051760(微信同号) |
有以下定义和语句: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;
|
答案是:单选题 ·w. s. year=1980;
出自
川北医学院口腔医学院 青书学堂系统
川北医学院
|
更多试题>>>>
1、有以下程序:#include <stdio.h>#include <string.h>struct A{ int a; char b[10]; double c; };void f( struct A t );mai
2、设有定义:Struct complex{ int real,unreal;} data1={1,8},data2;则以下赋值语句中错误的是( )。 ·data2=datal ; ·data2=(2,6); ·data2.
3、有以下程序:#include <stdio.h>int fun(){static int x = 1;x *= 2; return(x);}main(){int i, s = 1;for ( i = 1; i <= 2;
4、有以下程序:#include <stdio.h>int f( int t[], int );main(){int a[4] = { 1, 2, 3, 4 }, s;s = f( a, 4 ); printf( "%d\n", s
5、若有以下定义和语句:char s1[10]="abcd!",*s2="\n123\";printf("%d %d\n",strlen(s1),strlen(s2));则输出的结果是( )。 ·5 5 ·10 5 ·l0 7
|
|