论述题 阅读以下C语言代码,写出运行结果。 #include<stdio.h> int main() { int p = 8, q = 3; if (p / q == 2) { printf("条件满足\n"); } else { printf("条件不满足\n"); } return 0; }
相关试题
单选题 设整型变量i值为5,执行完j=i--后,j的值是( )。
单选题 #include <stdio.h> int main() { int a=34, b=28, max; if(a>b) max=a; else max=b; printf("%d和%d的较大值是:%d\n", a, b, max); return 0; } 运行结果为:
单选题 若已定义x和y为double类型,则表达式x=1;y=x+7/2的值是( )。
单选题 若有定义:int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是( )。
单选题 有以下程序:main() { int a; char c=10; float f=100.0; double x; a=f/=c*=(x=6.5); printf("%d %d %3.1f %3.1f\n", a, c, f, x); } 运行程序后的输出结果是( )。
单选题 一个C语言程序是由()。
单选题 有以下程序 #include <stdio.h> main(){ int x; scanf("%d",&x); if(x<=3) else if(x!=10) printf("%d\n",x); } 程序运行时,输入的值在哪个范围才会有输出结果( )
单选题 已有定义int x; float y;且执行scanf("%3d%f",&x,&y);语句,若从第一列开始输入数据12345 678(回车),则x的值为( )。