单项选择题

有以下程序 main() {int a=1,b=3,C=5,*P; int *pl=&a,,*p2=&b,*p3=&c; *P=*pl*(*p2); printf("%d\ n",*P); } 执行后的输出结果是【 】。

A.1
B.2
C.3
D.4
<上一题 目录 下一题>
热门 试题

单项选择题
以下选项中不能正确把c1定义成结构体变量的是( )。
A.typedef struct   { int red;    int green;    int blue;   } COLOR;      COLOR cl;
B.struct color cl   { int red;   int green;    int blue;   }
C.struct color   { int red;   int green;   int blue;   } cl;
D.struct   { int red;    int green;    int blue;   } cl;
单项选择题
有以下程序void f(int n,int* r){int rl=0;if(n%3=0) rl=n/3;else if(n%5=0) rl=n/5;else f(n,&r1);*r=rl;}main(){int rn=7,r;f(m,&);printf( %d ,r);}程序运行后的输出结果是【 】。
A.2
B.1
C.3
D.0
相关试题
  • 有以下程序:#include <stdlib.h>stru...
  • 有以下程序struct S{int n;int a[2...
  • 有以下程序main(int argc,char *argv...
  • 以下程序企图把从终端输入的字符输出到名为...
  • 以下程序中函数f( )的功能是将n个字符串...