下面程序的运行结果是 ( ) 。 #include int main() { int i,b,k=0; for(i=1;i<=5;i++) { b=i%2; while(b-->=0)k++; } printf(\%d,%d\,k,b); return 0; }
相似题目
-
下面程序的运行结果是______。#include#includevoidmain(){charp1[50]=”abc”,*p2,str[50]=abc
-
下面程序段的运行结果是( )注意输出结果的格式#include void main(){char *p=”abcdefgh”;p+=3;printf(%s\n,p);}
-
下面程序的运行结果是 #include \stdio.h\ int main() { int x=-5; do { printf(\%3d\,x+=2); }while (!(x++)); return 0; }
-
06410141:下面程序的运行结果是()。#include #include int main( ){char x[80]=\AB\, y[80]=\LMNP\;int n=0;strcat(x, y);while (x[n++]!='
-
下面程序的运行结果是______。 #include < stdio.h > #include < string.h > main() { char a[7]=\abcdef\,b[4]=\ABC
-
下面程序的运行结果是include<iostream.h>void main(){int num=1;int &ref=num;ref=ref+2;c
-
下面程序的运行结果为#include<iostream.h>void main( )char a='3';switch(
-
下面程序的运行结果是()。 include<iostream.h
-
下面程序的运行结果是include"iostream.h"define sum(a,b)a*bvoid main(){int x;X=sum(1+2,3);
-
下面程序的运行结果是()。include<iostream.h> void main{int num=1:int&ref=num; ref
-
下面程序的运行结果是()。 include define M 3 define N (M+1) define NM N*N/2 void main() { printf("%d,",NM); printf("%d\n",5*NM); }
-
下面程序的运行结果是()。 include<iostream.h> void fun(int *a,int *B. { int x=*a
-
下面程序的运行结果为()。 include void main { char a=’3’: switch(8) { case 3:cout$amp;A.3
-
写出下面程序执行后的运行结果。 include <stdio.h> define N 2 define M N+1 define N
-
下面程序段的运行结果是()。 include<stdio.h> void main() {char str[]="ABC",*p=str; pfintf("%d\n",*(p+3)); }
-
下面程序的运行结果是【】。 include<iostream> using namespace std; void fun(int&a,int b=3)
-
下面程序的运行结果是include<iostream.h>void main(){int i=1;while(i<=8)if (i%3!=2)cont
-
下面程序的运行结果为()。 include<iostream.h> voidmain() { chara=3: switch(a) {
-
下面程序的运行结果是()。include<stdio.h>main(){int y=10; do{y--;}while(--y); printf("%d\n"
-
下面程序的运行结果是()。 include<iostream.h> int fun(int a[],int n) { int resuh=1
-
下面程序段的运行结果是 include<iostream.h> void main() {char*s="abcde"; S+=2;
-
下面程序的运行结果是()。 include define MAx(a,b,c) ((a)>《b)?((a)>(c)?(a):(C)):((b)>(C)? (b)
-
给出下面程序的运行结果。include<stdio.h>intmain();return0;}
-
下面程序运行后输出的结果为: include int main(); return 0; }
-
下面程序段的运行结果是__________。 include<stdio.h>main(); t ++ ; } }