阅读下面程序,则执行后的结果是include"stdio.h"main(){ char str[]="tomeetme",*p;for(p=str;p
相似题目
-
阅读下列程序,则在执行后,程序的运行结果为( ).#include stdio.h#include string.hmain( ){ char a[30]=nice to meet you!
-
阅读下面程序:执行程序后的结果为6,2。5417b5c853703d8b3b564856.jpg
-
有以下程序 #include void main() { int y=10; while(y--); printf('y=%d',y); } 程序执行后的输出结果是_______。
-
阅读下面程序,则执行后的结果为( ). main( ) { int m=4,n=2,k; k=fun(m,n); printf(\%d\\n\,k); } fun(int m,int n) { return(m*m*m-n*n*n);}
-
阅读下面程序:执行程序后的结果为14。5417b2cc53703d8b3b56484a.jpg
-
有以下程序: include <stdio.h> void f(); } 执行后的输出结果【 】。
-
阅读下面程序段,则执行后的结果为include "stdio.h"main(){ int m=4,n=2,k;k=fun(m,n);printf("%d\n",k);}fun(int m,int n){ return(m*m*m-n*n*n);}
-
阅读下面程序,则执行后的结果是 include"stdio.h" main() { char str[]="tomeetme",*p; for(p=str;p<str+7;p+=2)putchar(*p); printf("\n");}
-
有如下程序: inClude<iostream> using namespaCe std: Class CD{ publiC: ~CD{Cout<<’C’:} private: Char name[80]; }; int main{ CD a,*b,d[2]; return 0; 执行这个程序的输出结果是()。
-
有如下程序: include<iostream> using namespace std; class MyClass{ public: MyClass{cout<<’A’;} MyClass(char C.{cout<<C;} ~MyClass{cout<<’B’;} }; int main{ MyClass pl,+p2; p2=new MyClass(’X’); delete p2; return 0; } 执行这个程序的输出结果是()。
-
【填空题】写出下面程序执行后的运行结果。 include< iostream> using namespace std; define RELEASE 0 void main____ { int i;char str[20]="Northwest",c; for ____!='0';i++) { ifdef RELEASE if ____ c=c-32; else if ____ c=c+32; endif cout<<c; } }
-
阅读下面程序,则执行后的结果为include "stdio.h"fun1(){ int k=20; return k; }fun2(){ int a=15; return a; }fun3(int a,int b){ int k; k=(a-b)*(a+b); printf("%d\n",k);}main(){ un3(fun1(),fun2());}
-
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
-
写出下面程序执行后的运行结果。 include <stdio.h> define N 2 define M N+1 define N
-
运行程序,程序输出结果是(). include <iostream> using namespace std; int main() { ch
-
(专基)阅读下面程序如果执行程序后输入的值是1 2 3 4 5 则结果是()#include "stdio.h"void main(){int arr【5】,i,sum=0; for(i=0;i<5;i++){scanf("%d",&arr【i】); } for(i=0;i<5;i++){sum=sum+arr【i】;}printf("sum=%d",sum);}
-
下面程序的运行结果是【】。 include<iostream> using namespace std; void fun(int&a,int b=3)
-
下面的程序输出结果是()。include<iostream>using namespace std;void add(){static int x;x++;c
-
有如下程序: include<iostroam> using namespace std; class Base{ protected: Base{cout<<’A’;} Base(char C){cout<<c;} }; class Derived:public Base{ public: Derived(char C){tout<<C;} }; int main{ Derived dl(’B’); retum 0; } 执行这个程序的输出结果是()。
-
有如下程序: 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 则程序中下划线处应填入的语句是
-
有以下程序 void fun(int x,int y,int z) { z=x*y; } include<iostream> using namespace std ; int main() { int a=4,b=2,c=6; fun(a,b,c); cout<<c; return 0; } 程序运行后的输出结果是(> A、16
-
【单选题】假定以下程序经编译和连接后生成可执行文件PROG.EXE,如果在此可执行文件所在目录的DOS提示符下输入"PROG ABCDEFGH IJKL",则输出结果为 。 include<iostream> using namespace std; void main (int argc, char *argv[]) { while(--argc>0) cout<<argv[argc]; }
-
写出下面程序执行后的运行结果。 include <stdio.h> include <math.h> define ROUND(x,m) ((int)((x)*pow(10,m)+0.5)/pow(10,m)) int main() { printf("%f,%f", ROUND(12.3456,1),ROUND(12.3456,2)); return 0; }
-
执行下面程序时,若从键盘输入“2”,则程序的运行结果是()include若输入’d’或’D’的话,结果是什么?main(){intk;charcp;cp=getchar();if(cp>=’0’&&cp<='9’)k=cp-‘0’;elseif(cp>=‘a'&&cp<=‘f’)k=cp-‘a’+10;elsek=cp-‘A’+10;printf(“%d/n”,k);}