关于Python语句P=–P,以下选项中描述正确的是()。
A.P和P的负数相等
B.P和P的绝对值相等
C.给P赋值为它的负数
D..P的值为0
A.P和P的负数相等
B.P和P的绝对值相等
C.给P赋值为它的负数
D..P的值为0
第1题
假定已建立以下链表结构,且指针p和q已指向如图所示的节点:
则以下选项中可将q所指节点从链表中删除并释放该节点的语句组是
A.p=q->next;free(q);
B.p=:q;free(q);
C.(*p).next=(*q).next;free(p);
D.p->next=q->next;free(q);
第3题
A.p=“abcd”
B.a=“abcd”
C.*p=“abcd”;D*a=“abcd”
第4题
A.for(i=0;i6;i++(printf(“%2d”,*(p++))
B.for(i=0;i6;i++)printf(“%2d”,*(p+i))
C.for(i=0;i6;i++)printf(“%2d”,*p++)
D.for(i=0;i6;i++)printf(“%2d”,(*p)++)
第5题
A.for(i=0;i6;i++)printf(“%2d”,*(p++));
B.for(i=0;i6;i++)printf(“%2d”,*(p+i));
C.for(i=0;i6;i++)printf(“%2d”,*p++);
D.for(i=0;i6;i++)printf(“%2d”,(*p)++);
第6题
若有定义语句:intyear=2009,*p=&year;以下不能使变量year中的值增至2010的语句是
A.(*p)++;
B.++(*p);
C.*p++;
D.*p+=1;
第8题
A.int(*p)(int,int)
B.int*p(int,int)
C.int*p[int,int]
D.以上选项都不对
第9题
A.p是指向structnode结构体变量的指针的指针
B.NODEp;语句出错
C.p是指向structnode结构变量的指针
D.p是structnode结构变量
第11题
设有以下定义和语句,则*(*(p+2) +1) 的值为______。 int a[3][2]={10,20,30,40,50,60},(*p) [2]; p=a;