单项选择题

以下4组用户定义标识符中,全部合法的一组是( )。

A._main enclude sin
B.If -max turbo
C.txt REAL 3COM
D.int k_2 _001
<上一题 目录 下一题>
热门 试题

单项选择题
有下列程序: #include <stdio.h>main(){int a[]={1,2,3,4},y,*p=&a[3];--p; y=*p; printf( y=%d n ,y);}程序的运行结果是( )。
A.y=0
B.y=1
C.y=2
D.y=3
单项选择题
有以下程序:#include main(){int n,*P=NULL;*P=&n;prinff( Input n: );scanf( %d ,&p);prinff( output n: );prinff( %d\n ,P);}该程序试图通过指针P为变量n读入数据并输出,但程序有多处错误,以下语句正确的是【 】。
A.intn,*P=NULL;
B.*P=&n;
C.scanf("%d",&p)
D.printf("%d\n",p);
相关试题
  • 有以下程序struct S{int n;int a[2...
  • 有以下程序:#include <stdio.h>main...
  • A.*sB.sC.*s++D.(*s)++
  • 有以下程序:float f1(float n){ re...
  • 有以下程序#include int fun(int (*...