单项选择题

有以下程序:
main()
int a=1,b=3,c=5,*p;
int *p1=&a,*p2=&b,*p3=&c;
*p=*p1*(*p2);
printf("%d\n", *p);

执行后的输出结果是( )。

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

单项选择题
C语言结构体类型变量在程序执行期间( )。
A) 所有成员一直驻留在内存中
B) 没有成员驻留在内存中
C) 部分成员驻留在内存中
D) 只有一个成员驻留在内存中
单项选择题
若输入bcdefgh、m、abcdefg,以下程序的输出结果为( )。 #include<stdio.h> #include<string.h> main() int i; char string[20],str[3][20]; for(i=0;i<3;i++)gets(str[i]); if(strcmp(str[0],str[1])>0) strcpy(string,str[0]); else strcpy(string,str[1]); if(strcmp(str[2],string)>0) strcpy(string,str[2]); printf( %s ,string);
A) bcdefgh B) m C) abcdefg D) bcdefgh或abcdefg
相关试题
  • 设有下列程序: #include<stdio.h> ...
  • 以下程序的输出结果是______。 int...
  • ’ 13’在内存中占1个字节, 12 在...
  • 以下程序运行后的输出结果是 。 #includ...
  • 以下程序运行后的输出结果是______。...