单项选择题

下面结构体的定义语句中,错误的是( )。

A) struct ordint x;int y;int z;;struct ord a;
B) struct ordint x;int y;int z;;ord a;
C) struct ordint x;int y;int z;a;
D) structint x;int y;int z;a;
<上一题 目录 下一题>
热门 试题

单项选择题
分析下列程序: #include<stdio.h> main() int *p1,*p2,*p; int a=6,b=9; p1=&a;p2=&b; if(a<b)p=p1;p1=p2;p2=p; printf( %d,%d ,*p1,*p2); printf( %d,%d ,a,b); 程序的输出结果为( )。
A) 9,66,9
B) 6,9 9,6
C) 6,9 6,9
D) 9,69,6
单项选择题
有以下程序 #inclUde <stdio.h> void fun(int *s,int n1,int n2) int i,j,t; i=n1; j=n2; while(i<j) t=s[i];s[i]=s[j];s[j]=t;i++;j--; main() int a[10]=1,2,3,4,5,6,7,8,9,0,k; fun(a,0,3); fun(a,4,9); fun(a,0,9); for(k=0;k<10;k++)printf( %d ,a[k]); printf( n ); 程序的运行结果是
A) 0987654321
B) 4321098765
C) 5678901234
D) 0987651234
相关试题
  • 以下程序运行后的输出结果是 。 #includ...
  • 函数调用语句:“fgets(buf,n,fp);”...
  • 下面程序的运行结果是______。 #in...
  • 有以下程序,若运行时从键盘输入:18,1...
  • 当执行以下程序时,输入123456789...