填空題
問(wèn)答題
設(shè)單向鏈表head1和head2已建立。編寫(xiě)將單向鏈表head2連接到單向鏈表head1之后的函數(shù),以head1返回,如圖所示。
設(shè)有共用體類(lèi)型和共用體變量定義如下: union Utype { char ch; int n; long m; float x; double y; }; union Utype un; 并假定un的地址為ffca。 則un.n的地址是(),un.y的地址是()。執(zhí)行賦值語(yǔ)句:un.n=321;后,再執(zhí)行語(yǔ)句:printf("%c\n",un.ch);其輸出值是()。(提示:321D=101000001B)
為了建立如圖所示的鏈表,結(jié)點(diǎn)的正確描述形式是 struct node { int data; () };
struct node { int data; struct node *next; };
若有下面的定義: struct {int x;int y;}s[2]={{1 ,2},{3,4}},*p=s; 則表達(dá)式++p->x的值為();表達(dá)式(++p)->x的值為()。