下面程序的运行结果是______。#include#includevoidmain(){charp1[50]=”abc”,*p2,str[50]=abc
下面程序段的运行结果是( )注意输出结果的格式#include void main(){char *p=”abcdefgh”;p+=3;printf(%s\n,p);}
有以下程序 #include struct st { int x, y;) data[2]={l,10,2,20}; main() { struct st *p=data; printf(%d,, p->y); printf(%d,(++p)->x); } 程序的运行结果是( )。
写出以下程序运行后的输出结果。 #includestdio.h #include string.h int main() { char st[20]={hello\0\t\\\}; printf(%d,%d\n,strlen(st),sizeof(st)); return 0; }
以下程序运行后的输出结果是#include#includeintmain(){charst[20]={hello\0\t\\\};printf(%d%d\n,strlen(st),sizeof(st));return0;}
#include struct st{ int x, y;} data[2]={l,10,2,20};main(){ struct st *p=data;printf(\%d,\, p->y);printf(\%d \,(++p)->x);}程序的运行结果是
下面程序段的运行结果是( )。char st[8]=\input
3.下面程序的运行结果是( )。#include int main(void){int m=7,n=5,i=1;do{ if (i%m==0);if (i%n==0){ printf(\%d\\n\,i); break;}i++;} while(i!=0);return 0;}
下面程序的运行结果是 #include \stdio.h\ int main() { int x=-5; do { printf(\%3d\,x+=2); }while (!(x++)); return 0; }
下面程序的运行结果是( )。#include void fun(int a,int *b){a=4;*b=2*a;}int main(){int a=5,b=2;fun(a,&b);printf(\%d\\n%d\\n\,a,b);return 0;}
下面程序的运行结果是 ( ) 。 #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 < stdio.h > #include < string.h > main() { char a[7]=\abcdef\,b[4]=\ABC
下面程序的运行结果是()。 include<iostream.h
下面程序的运行结果是__。include< stdio.h >main(){ int a[5],i; for(i=0;i< 5;i++) { a=9(i-2+4(i >3))%5; printf(“%2d”,a); } }
下面程序的运行结果是()。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<iostream> using namespace std; void fun(int&a,int b=3)
下面程序的运行结果是()。 include<iostream.h> int fun(int a[],int n) { int resuh=1
下面程序段的运行结果是 include<iostream.h> void main() {char*s="abcde"; S+=2;
下面程序的运行结果是__。include< stdio.h >main(){ int a[3][3]={1,2,3,4,5,6,7,8,9},i; for(i=0;i<=2;i++) printf(“%d “,a[2-i]); }
给出下面程序的运行结果。include<stdio.h>intmain();return0;}
运行下面程序,输出结果是: include <stdio.h> int main() { int i = 10,j = 0; do { j = j + i; /*第一:10,第二:19第三:27第四:34第五:40*/ i--; }while(i > 5); printf(“%d\n”,j); }
下面程序运行后输出的结果为: include int main(); return 0; }
下面程序段的运行结果是__________。 include<stdio.h>main(); t ++ ; } }