以下程序的输出结果是___________。#includevoid fun(int x) {x=50;}void main(){int a=10;fun(a);printf(%d\n,a);}
有以下程序,程序的运行结果是 _________ 。 #include void main() { char ch='Z'; ch=(ch-'A'+1)%26+'A'; putchar(ch); }
以下程序的运行结果是____________#include stdio.hvoid main(){void increment();increment();increment();increment();}void increment(){int x=0;x+=1;printf(%d ,x);}
有以下程序,其运行结果是______。 #include void main() { int a[]={1,2,3,4},y,*p=&a[3]; ++*p; y=*p--; printf('y=%d',y); }
有以下程序: #include void main() { char a[][10] = {'Morning', 'Afternoon', 'Evening', 'Night'}; printf('%s',a[1]); } 程序运行后的输出结果是__________。
有以下程序 #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\); }
已知字符a的ASCII码值为97,则以下程序的输出结果是__________。#include 'stdio.h'void main(){ char ch='c';printf('%c%d ',ch,ch);}
有如下程序段,执行后的输出结果是______。 #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<stdio.h>void prt(int*x,int*y,int*z){ printf("%d,%d,%d
下列程序的执行结果是______。include<stdio.h>union un{int i; char c[2};};void main(){union
以下程序的运行结果是 _____________ include "stdio.h" void main()x=%d y=%d z=%d
要求下面的程序运行后,显示如下结果: 2 10 4 6 1 5 2 3 2 4 7 8 5 1 3 2 下列程序执行后的输出结果是________。 include void main(); }
下列程序段的输出结果是 _______ 。 void main(); }
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
以下程序的输出结果是 ______。include<iostream.h>void main() {char w[][10]={ "ABC", "DEFGH"
下列程序的执行结果是______。 lnClude<stdio.h> union un { int i; char c[2]; }; void main() { union un x; x.c[0]=10 x.c[l]=1; printf("\n%d,x.i); }
下列程序的执行结果是_______。 include<stdio.h> union un { int i; char c[2]; }; void main() { union un x; x.c[0]=10; x.c[1]=1; printf("\n%d",x.i); }
有如下程序: 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<iostream.h>void main(){ inti,j;for(j=10;j<=11;j++){fo
执行以下程序:includevoidmain(void){charc=0;cout<<c<<’/n’;}输出的结果是________。
以下程序若运行时输入ABC,则输出结果是______。 include include void main(); }