執(zhí)行以下程序段后,s的值是() static int a[]={5,3,7,2,1,5,4,10}; int s=0,k; for(k=0;k<8;k+=2) s+=*(a+k);
A.17 B.27 C.13 D.有語法錯誤,無法確定
如下程序的執(zhí)行結(jié)果是() #include < stdio.h> main() { static int a[ ][4]={1,3,5,7,9,11,13,15,17,19,21,23}; int (*p)[4], i=1,j=2; p=a; printf(""%d \n "",(*(p+i)+j)); }
A.9 B.11 C.13 D.17
struct Date { int month;? int day; int year; }; struct Student { int num;? char name[20]; char sex; int age; struct Date birthday; float score; }stu; sizeof(stu)的值是()
A.45 B.48 C.37 D.40