单项选择题

以下定义语句中正确的是( )。

A.int a=b=0;
B.char A=65+1,b='b';
C.float a=1,*b=&a,*c=&b;
D.double a=0.0;b=1.1;
<上一题 目录 下一题>
热门 试题

填空题
以下程序的输出结果是______。 #include <stdio.h> #include <string.h> char *fun(char*t) char *p=t; return (p+strlen(t) 2); main() char *str= abcdefgh ; str=fun(str); puts(str);
单项选择题
有以下程序: #include <stdio.h> #define N 4 void fun(int a[][N],int b[]) int i; for (i=0;i<N;i++)b[i]=a[i][i]; main[) int x[][N]=1,2,3,4,5,6,7,8,9,10,y[N],i; fun(x,y); for (i=0;i<N;i++)printf( %d, ,y[i]); printf( n ); 程序的运行结果是()。
A.1,2,3,4,
B.1,0,7,0,
C.1,4,5,9,
D.3,4,8,10,
相关试题
  • 以下程序的输出结果是______。 #in...
  • 以下程序的输出结果是______。 #in...
  • b[i][0]
  • 下面程序的功能是:将字符数组a中下标值为...
  • a[0][i]