單項選擇題
有以下程序段
struct st
{int x;int *y,*pt;
int a[]={l,2},b[]={3,4};
strct st c[2]={10,a,20,b};
pt=c;
以下選項中表達式的值為11的是()
A.*pt→y
B.pt→x
C.++pt→x
D.(pt++)→x
您可能感興趣的試卷
你可能感興趣的試題
1.單項選擇題
若有說明語句:
Double *p,a;
則能通過scanf語句正確給輸入項讀人數(shù)據(jù)的程序段是()
A.*p=&a;scanf(”%if”,p);
B.*p=&a;scanf(”%f”,p);
C.p=&a;scanf(”%if”,*p);
D.p=&a;scanf(”%if”,p);
2.單項選擇題
已定義以下函數(shù)
Int fun(int *p)
{return *p;}
則fun函數(shù)返回值是()
A.不確定的值
B.一個整數(shù)
C.形參P中存放的值
D.形參P的地址值