如果函数的返回类型是指针,则可以返回函数内部任意变量的地址。
查看答案
如果函数的返回类型是指针,则可以返回0。
A. 对
B. 错
若有定义:int a[2][3],则*(a[i]+j) 是对a数组的第i行j列元素地址的正确引用.
A. 对
B. 错
下列程序的输出结果是_______。#include#includeint main(void){ struct node{ int x; node *next;}*p1,*p2=NULL; int a[5]={7,6,-5,28,1},i; for(i=0;i<5;i++){if(abs(a[i])%2!=0){p1=(node *)malloc(sizeof(node));p1->x=a[i];p1->next=p2;p2=p1;} } while(p1!=NULL){printf("%d#",p1->x);p1=p1->next; } return 0;}
以下程序的运行结果是_______。int main(void){ struct cmplx{int x;int y;}cnum[2]={1,3,2,7}; printf("%d\n",cnum[0].y/cnum[0].x*cnum[1].x); return 0; }