下列对变量的引用中,错误的是A.int a; int p = a;B.char a; char p = a;C.iht a; int p; p =a;D.float a; float p=a;
下列对变量的引用中,错误的是
A.int a; int &p = a;
B.char a; char &p = a;
C.iht a; int &p; p =a;
D.float a; float &p=a;
相关考题:
请选出正确的程序段______。A.int *p scanf(""%d"",p); ……B.int *s,k; *s=100; ……C.int *s,k; char *p,c; s=k; p=c; *p='a'; ……D.int *s,k; char *p,e; s=k; p=c; s=p; *s=1; ……
请选出正确的程序段A.int*p; scanf("%d",p); …B.int*s,k; *s=100; …C.int *s,k; char*p,c; s= scanf("%d",p); …B.int*s,k; *s=100; …C.int *s,k; char*p,c; s=k; p=c; *p='a'; …D.int *s,k; char *p,e; s=k; p=c; s=p; *s=1; …
请选出正确的程序段______。A.int*pB.int*s,k;scanf(""%d"",p); *s=100;… ……C.int*s,k;D.int*s,k;char*p,c; char*p,e;s=k;p=c; p=c;*p='a'; s=p;…… *s=1;……
请选出正确的程序段______。A.int*p scanf("%d"",p); ……B.int*s,k; *s=100; ……C.int*s,k; char *p,c; s=k; p=c; *p='a'; ……D.int *s,k; char *p,e; s=k; p=c; s=p; *s=1; ……
请选出正确的程序段A.int*p; scanf("%d",p); …B.int *s,k; *s=100; …C.int *s,k; char *p,c; s=k; p=c; *p='a'; …D.int *s,k; char *p,e; s=k; p=c; s=p; *s=1; …
以下正确的程序段是______。A.int*p; scanf("%d",p);B.int *s,k *s=100;C.int*s,k; char*p,c; s=k; p=c; *p='a';D.int*s,k; char*p,c; s=k; p=c; s=p; *s=1;
下列程序段没有错误的是( )。A.int*p;cin>>*p;B.int*s,k;*s=100C.int *s ,k; char *p ,c; s=k; p=c; *p='a'; *s=1;D.int *s,k; char *p,c; s=k; p=c; s=p;
7、下面语句错误的是()。A.int *p; *p=20;B.char *s="abcdef"; printf("%s\n",s);C.char *str="abcdef"; char *p; p=strD.char *str;str="abcdef";