下列程序执行后的输出结果是() voidfunc1(inti); voidfunc2(inti); charst[]="hello,friend!"; voidfunc1(inti) {printf("%c",st[i]); if(i<3){i+=2;func2(i);} } voidfunc2(inti) {printf("%c",st[i]); if(i<3){i+=2;func1(i);} } main() {inti=0;func1(i);printf("\n");}
以下程序运行后的输出结果是#include“stdio.h”void main(){ char c;c='B'+32;printf(%c\n,m);}
有以下程序 #include void main() { int y=10; while(y--); printf('y=%d',y); } 程序执行后的输出结果是_______。
以下程序执行后的输出结果是________。 #include \stdio.h\ void main() { int i; for(i=1;i<=40;i++) { if(i++%5==0) if(++i%8==0) printf(\%d\,i); } printf(\\\n\); }
有如下程序段,执行后的输出结果是______。 #include void main() { struct a { int x; int y; }num[2]={{20,5},{6,7}}; printf('%d',num[0].x/num[0].y*num[1].y); }
以下程序执行后的输出结果是______。int sub(int n){int t;if(n==1)return 5;elsereturn t=sub(n-1)+3;}void main(){printf('%d ',sub(3));}
有下列程序 #include void main() { int a=0,b=0,c=0; if (++a || ++b && ++c) printf('%d,%d,%d', a, b, c); } 程序执行后的输出结果是________。
有下列程序,程序运行后的输出结果是( )。#include void fun( int *x,int *y);int main(){int x=1,y=2;fun(&y,&x);printf(\%d %d\,x,y);return 0;}void fun( int *x,int *y){printf(\%d%d\,*x,*y);*x=3;*y=4;}
有以下程序: include <stdio.h> void f(); } 执行后的输出结果【 】。
下列程序执行后的输出结果是void funcl(int i);void func2(int i);char st[]="hello,friend!";void fund(int i){ cout<<st[i];if(i<3){i+=2;func2(i);}}void func2(int i){ cout<<st[i];if(i<3){i+=2;funcl(i);}}main(){int i=0;fund(i);cout<<endl;}
要求下面的程序运行后,显示如下结果: 2 10 4 6 1 5 2 3 2 4 7 8 5 1 3 2 下列程序执行后的输出结果是________。 include void main(); }
下列程序执行后的输出结果是 void func(int *a,int b[]) { b[0]= *a+6; } main() { int a,b[5]; a=0; b[0] =3; func(&a,b);printf("%d\n",b[0]);}
下列程序执行后的输出结果是()。void func(int*a,int b[]){ b[0]=*a+b;}main{ int a,b[5]; a=0;
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
执行下述程序后,输出的结果是()。 include<stdio.h> define S(X)X*X void main { int
有以下程序 include <stdio.h> void main() { int y=9; for(;y>0;y--) { if(y%3==0) { printf("%3d",--y); continue; } } } 程序运行后的输出结果是()
有如下程序: include<iostream> using namespace std; class Base { public: void fun() { cout<<"Base::fun"<<endl; } }; class Derived: public Base { public: void tim() } ____________ cout<<"Derived:: fun"<<endl; } }; int main() { Derived d; d.fun(); return O; } 已知其执行后的输出结果为: Base::fun Derived::fun 则程序中下划线处应填入的语句是
有以下程序 include<stdio.h>include<string.h>void fun(); } 程序运行后的输出结果是
3、有以下程序,其中%x表示按无符号整数输出,sizeof(int)为4,那程序运行后的输出结果是() void main() { int x=-1; printf("%u\n",x); }
下列程序执行后的输出结果是()
执行以下程序:includevoidmain(void){charc=0;cout<<c<<’/n’;}输出的结果是________。
下列程序运行后的输出结果是_public class Foo{ public static void main(String[] args){ String s; System.out.println(“s=” + s); }}()
下面程序段执行后的输出结果是()。using System;class test{ static void Main(){ int x = 0, y = 5, z = 3; while (z– > 0 && ++x < 5) y = y – 1; Console.WriteLine(“{0},{1},{2}”, x, y, z); }}
数字字符0的ASCII值为48,若有以下程序 void main() { char a='1', b='2'; cout << b++ <<","; cout << b-a << endl; } 程序运行后的输出结果是()