阅读程序写出结果:#include int fun(double a,double b);void main( ){ cout<
以下程序的输出结果是 。 #include main() { int m[ ]={1,4,7}; int i; for(i=1;i<=2;i++) printf(%d,m[i]); }
阅读下列程序,写出运行结果 ________ 。 #include struct ty{ int data;charc;}; fun(struct ty b) { b.data =200; b.c='y'; } int main() { struct ty a={100,'x'}; fun(a); printf(\%d,%c\\n\,a.data,a.c); return 0; }
写出以下程序的输出结果 ( ) 。 #include \stdio.h\ int i; int fun( int a, int *b); int main() { int i=1,j=2; fun (fun(i,&j),&j); return 0; } int fun ( int a, int *b) { static int m=2; i+=m+a; m =++(*b); printf (\%d,%d,\,i,m); return (m); }
阅读程序选结果 。 #include main() { int i, temp; int a[5] = { 9,6,5,2,1 }; for (i = 0; i<5 / 2; i++) { temp = a[i]; a[i] = a[5-i-1]; a[5-i-1] = temp; } for (i=0; i<5; i++) printf(\%d\, a[i]); }
以下程序的运行结果是() #include int f(int b[],int m,int n) { int i,s=0; for(i=m;i
以下程序的运行结果是_____。 #include #define ADD(x) x+x void main() { int m = 1, n = 2, k = 3; int sum = ADD(m + n)*k; printf('sum = %d', sum); }
阅读下列程序,当运行函数时,输入asd af aa z67,则输出为 include <stdio.h> include <ctype.h> include <string.h> int fun(char*str) { int i,j=0; for(i=0;str[i]!='\0';i++) if(str[i]!='')str[j++]=str[i]; str[j]='\0'; } main() { char str[81];
以下程序的输出结果是【】。 include<iostream.h> int add(int x,int y) { retum X+y; } dOuble ad
以下程序的正确运行结果是()。include<iostream.h>int f(int);void main(){int a=2,i;for(i=0;i<
下列程序的输出结果是()。 include<stdio.h> main { int i; for(i=1;i<=10,i++) { if(
Tilil程序的运行结果是()。 include<iostream.h> void main { int i=1: while(i<=8)
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
(专基)阅读下面程序如果执行程序后输入的值是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<stdio.h>define ADD(x) x+x main{ int m=1,n=2,k=3;in
下面的程序输出结果是()。include<iostream>using namespace std;void add(){static int x;x++;c
下列程序的运行结果是()。 include<stdio.h>define ADD(x) x+xmain(){int m=1,n=2,k=3; int s=A
以下程序的执行结果为()。include<iostream.h>Class sample{ int n;public: sample(int i){n=i;}
写出程序的运行结果的第二行输出: 。 include <stdio.h> int main() { int X[4][4]={{11,2
有以下程序: define ADD(x) x+x include "stdio.h" int main(void) { int m=1,n=2,k=3; int sum=ADD(m+n)*k; printf("sum=%d",sum); return 0; } 该程序的运行结果是()。
写出下面程序执行后的运行结果。 include <stdio.h> struct NODE { int k; struct NODE *link; }; int main() { struct NODE m[5],*p=m,*q=m+4; int i=0; while(p!=q) { p->k=++i; p++; q->k=i++; q--; } q->k=i; for(i=0;i<5;i++) printf("%d",m[i].k); return 0; }
阅读以下程序,其运行结果是______。 include <stdio.h> int main() { int i; for(i='a';i<'f';i++,i++) printf("%c",i-'a'+'A'); printf("n"); return 0; }
1、阅读程序,给出程序的执行结果。 include<stdio.h> int Square(int i) { return i*i; } int main(void) { int i=0; i=Square(i ); for(;i < 3; i++) { static int i=1; i +=Square(i ); printf("%d,", i ); } printf("%d", i) return 0; }
阅读以下程序,写出程序的输出结果________ include <stdio.h> struct VALUE { int x; char c; }; void func(struct VALUE b) { b.x -= 100; b.c+= 4; } int main() { struct VALUE a ={100,'A'}; func(a); printf("%d %cn",a.x,a.c); return 0; }