以下定义语句中正确的是( )。
A.char a='A ' b='B';
B.float a=b=10.0;
C.int a=10, *b=&a;
D.float *a, b=&a;
第1题:
以下语句或语句组中,能正确进行字符串赋值的是( )。
A.char *sp; *sp="right!";
B.char s[10]; s="right!";
C.char s[10]; *s="right!";
D.char *sp="right!";
第2题:
以下定义语句中正确的是()。
A.float a=5.0,b=10.0;
B.int a=10;b=a;
C.int a,b=3.14;
D.char a='A' ,b=”B”;
第3题:
以下定义语句中正确的是______。
A.char *a = 'A',b='B';
B.float a=b=10.0;
C.int a=10,*b=&a;
D.float *a,b=&a;
第4题:
以下语句或语句组中,能正确进行字符串赋值的是
A.char *sp; *sp="right!";
B.char s[10]; s="right!";
C.char s[10]; *s="right!";
D.char *sp="right!";
第5题:
设已有定义float x;,则以下对指针变量p进行定义其赋初值的语句中正确的是()
A.float *p=1024;
B.float *p=&x;
C.int *p=(int)x;
D.float p=&x;