更多"阅读下面语句,则程序的执行结果是 【8】 。 #include'st"的相关试题:
[填空题]阅读下面语句,则程序的执行结果是______。
#include "stdio.h"
main( )
int a=-1,b=1,k;
if(++a<0)&&!(b--<=0))
printf("%d,%d/n",a,b);
else printf("%d,%d/n",b,a);
[填空题]阅读下面程序,则执行后的输出结果是 【6】 。
#include "stdio.h"
main( )
int x,y,z;
x=1;y=2;z=3;
if(x>y)if(x>z)printf("%d",x);
else printf("%d",y);
printf("%d/n",z);
[填空题]阅读下面程序段,则执行后输出的结果是 。
#include "stdio.h"
main( )
char fun(char,int);
char a=’A’;
int b=13;
a=fun(a,b);
putchar(a);
char fun(char a,int b)
char k;
k=a+b;
return k;
[填空题]阅读下面程序段,执行后输出的结果是______。
#include "stdio.h"
main( )
char fun(char,int);
char a=’A’;
int b=13;
a=fun(a,b);
putchar(a);
char fun(char a,int b)
char k;
k=a+b;
return k;
[填空题]阅读下面程序,则执行后的输出结果是______。
#include"stdio.h"
main( )
int x,y,z;
x=1;y=2;z=3;
if(x>y)if(x>z)printf("%d",x);
else printf("%d",y);
printf("%d/n",z);
[填空题]阅读下面程序段,则执行后输出的结果是______。
#include"stdio.h"
main( )
char fun(char,int);
char a=’A’;
int b=13;
a=fun(a,b);
putchar(a);
charfun(char a,int b)
char k;
k=a+b;
return k;
[单项选择]阅读下面程序,程序执行后的结果为()。
#include "stdio.h"
main( )
char *str="abcdefghijklmnopq";
while(*str++!=’e’);
printf("%c/n",*str);
A. f
B. a
C. e
D. q
[填空题]下面程序的执行结果是 【15】 。
#include <iostream. h>
void main( )int n=0,x=0;
don++;
if(n%3==2&&n%5==3&&n%7==2)
x=1;
while(x!=1);
cout<<"n=" <<n<<end1;
[填空题]下面程序的执行结果是
[7] 。
#include<iostream.h>
void main( )
int a=0,b=2,c=0,d=30;
if(
- a)
d=d-10;
else if(B)
if(!C)
d=15;
else d=20;
cout<< “d=” <<d<<end1;