單項(xiàng)選擇題

有以下說明語句:struct point{int x;int y;}p;則正確的賦值語句是()

A.point.x=1;point.y=2;
B.point={1,2};
C.p.x=1;p.y=2;
D.p={1,2};

微信掃碼免費(fèi)搜題