填空题 下列程序的功能是将从键盘输入的一对整数由小到大排序输出,当输入的一对整数相等时结束循环。程序中的空白处(横线上方)应该填入()。 #include main( ) { int a,b,temp; scanf(“%d%d”,&a,&b); while( ){ if(a>b){ temp=a; a=b; b=temp; } printf(“%d,%d\n”,a,b); scanf(“%d%d”,&a,&b); } }
填空题 若有定义:“intx[10],*p,p=x;”,则在程序中引用数组元素x[i]的四种形式中,除了x[i]、p[i]和*(p+i)以外,还有()
填空题 若已有如下定义: struct node{ int data; struct node *link; } *p; 并且希望通过语句“p=(struct node)malloc( );”使得指针p指向一个具有struct node类型的动态存储空间,则该语句中的空白处(横线上方)应该填入()