问题

以下选项中正确的语句组是

A)char s[]; s="BOOK!";

B)char *s; s={"BOOK!"};

C)char s[10]; s="BOOK!";

D)char *s; s="BOOK!";

参考答案
您可能感兴趣的试题
  • 有以下程序#include int fun(int x,int y){ if(x==y) return (x);else return((x+y)/2);}main(){ int a
  • 设函数中有整型变量 n, 为保证其在未赋初值的情况下初值为 0, 应该选择的存储类别是A)autoB)registerC)staticD)auto 或 register
  • 有以下程序#include int b=2;int fun(int *k){ b=*k+b; return (b);}main(){ int a[10]={1,2,3,4,5,6,7
  • 有以下程序#include #define PT 3.5 ;#define S(x) PT*x*x ;main(){ int a=1, b=2; printf(%4.1f\n,S
  • 有以下程序#include struct ord{ int x,y; } dt[2]={1,2,3,4};main(){ struct ord *p=dt;printf(%d,,
  • 设有宏定义 :#define IsDIV(k,n) ((k%n==1)?1:0) 且变量 m 已正确定义并赋值 ,则宏调用 :IsDIV(m,5)&&IsDIV(m,7) 为真时所要表达的是A) 判断