問答題
【簡答題】寫出下列程序的輸出結(jié)果#includestructs{inta;floatb;char*c;};voidmain(){structsx={19,83.5,"zhang"};structs*px=&x;printf("%d,%.1f,%s\n",x.a,x.b,x.c);printf("%d,%.1f,%s\n",px->a,(*px).b,px->c);printf("%c,%s\n",*px->c-1,&px->c[1]);}
答案:
19,83.5,zhang
19,83.5,zhang
Y.hang