以下程序的运行结果是( )。 #include stdio.h void abc( char *p) { int i,j; for (i=j=0;*(p+i)!='\0';i++) if (*(p+i) < 'n') { *(p+j)=*(p+i); j++; } *(p+j)='\0'; } int main() { char str[]=moring
![](/upload/20220827/c85071da6ff0aadc10ebce6c25bb4f0d.png)
相似题目
-
有以下程序#include<stdio .h>main(){char s[」=”rstuv;printf(”%c\n”,*s+2);}程序运行后的输出结果是
-
有以下程序#include void main(){charstr[]={Hello,Beijing};printf(%d,%d\n,strlen(str),sizeof(str));}程序的运行结果是( )
-
有以下程序 #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 main() { int k=011; printf(%d\nk++); }
-
以下程序运行后的输出结果是#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);}程序的运行结果是
-
有以下程序#include #include main(){ char str[ ][20]={“One*World”, “One*Dream!”},*p=str[1];printf(“%d,”,strlen(p));printf(“%s ”,p);}程序运行后的输出结果是( )
-
以下程序的运行结果是_______。#include main(){struct st{int n;struct st *np;};struct st a[3],*p;a[0].n=7;a[0].np=&a[1];a[1].n=9;a[2].np=&a[2];a[2].n=11;a[0].np='\\0';p=&a[0];printf(\%d\\n\,++p->n);}
-
以下程序的运行结果是【 】。 include<stdio.h> main() { int fun(); fun();} fun (
-
有以下程序include<stdio.h>main(){char s[]=“rstuv”;printf(“%c\n”,*s+2);}程序运行后的输出结果是()。
-
有以下程序: include<stdio.h> main() {printf("%d\n",NULL)); 程序运行后的输出结果是()。
-
以下程序运行后的输出结果是【】。include<stdio.h>main(){int x=20;prinff(“%d”,0<x<2
-
以下程序的运行结果是()。 include<stdio.h> define MIN(x,y) (x)<(y)? (x):(y)
-
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
-
若运行时给变量x输入12,则以下程序的运行结果是include <iostream.h>void main(){ int x,y; cin
-
有以下程序 include<stdio.h>include<string.h>void fun(); } 程序运行后的输出结果是
-
有以下程序includ<stdio.h>main(){printf("%"NUL);}程序运行后的输出结果是()
-
以下程序的运行结果是________。 include int workover() { i=i<=2 5:0; return i; }
-
有以下程序 include<stdio.h>include<string.h>typedef struct stu { char name[10]; char gender; int score; } STU; void f(); } 程序的运行结果是
-
有以下程序:includ<stdio.h>include<string.h>main()chaa[10]="abcd";printf("%d,%",strlen(a),sizeof(a));}程序运行后的输出结果是()
-
有以下程序includ<stdio.h>main(){ int a;(int)(-1.53*3);printf("%"a);}程序的运行结果是()
-
有以下程序include ’stdio.h’min()} 程序的运行结果是3 B.5C.7 D.8
-
以下程序若运行时输入ABC,则输出结果是______。 include include void main(); }
-
有以下程序 include<stdio.h> include<stdio.h> intfun()); } 程序的运行结果是10 B.20 C.0 D.出错