单项选择题

设有定义:char*c;,下列选项中能够使字符型指针c正确指向一个字符串的是( )。

A.char str[]="string";c=str;
B.scanf("%s", ;
C.c=getchar();
D.*c=*string";
<上一题 目录 下一题>
热门 试题

单项选择题
下列结构体的定义语句中,错误的是( )。
A.struct ord {int x;int y;int z;};struct ord a;
B.struct ord {int x;int y;int z;}stmct ord a;
C.stmct ord {int x;int y;int z;}a;
D.struct{int x;int y;int z;}a;
单项选择题
有下列程序: #include<stdio.h> #define f(x)x*x*X main() { int a=3,s,t; s=f(a+1) ;t=f((a+1) ); printf( %d,%d n ,s,t); } 程序运行后的输出结果是()。

A.10,64
B.10,10
C.64,10
D.64,64

相关试题
  • 有下列程序: #include<stdio.h> fun...
  • 有下列程序: #include<stdio.h> int...
  • 有以下程序 #include<stdio.h> typed...
  • 有下列程序: #include<stdio.h> mai...
  • 下列程序运行后的输出结果是______。...