下面程序的运行结果是:______。#define N 10#define s(x) x*x#define f(x) (x*x)main(){int i1,i2;i1=1000/s(N);i2=1000/f(N);printf(%d %d\n,i1,i2);}
设有定义:char s[12] = string ;则printf( %d\n,strlen(s)); 的输出是( )。
有以下程序#include void main(){charstr[]={Hello,Beijing};printf(%d,%d\n,strlen(str),sizeof(str));}程序的运行结果是( )
以下printf语句的输出结果是( )。printf(%d\n, strlen(school));
以下程序是计算n!,请填空#includeintmain(){inti,s,n;s=1;printf(Entern:);scanf(%d,&n);for(i=1;i<=n;i++)【1】;printf(s=%d,s);return0;}
写出以下程序运行后的输出结果。 #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;}
以下语句的输出结果是( ). printf(%d\n,strlen(\t\065\xff\n));
下面程序可求出1~1000的自然数中所有的完数(因子和等于该数本身的数)请填空。main( ){ int m, n, s;for(m=2;m<1000;m++){ (1) ;for(n=1;n<=m/2;n++)if( (2) ) s+=n;if( (3) printf(“%d\\n”, m); }}
以下语句的输出结果是 ( )。printf(\%d\\n\,strlen(\\\t\\\\\065\\xff\\n\));
有以下程序 include <string.h>main(){char p[20]={′a′, ′b′, ′c′, ′d′}, q[]="abc", r[]="abcde";strcat(p, r); strcpy(p+strlen(q), q);printf("%d\n",strlen(p));}程序运行后的输出结果是
下列程序的输出结果是()。include<stdio.h>include<string.h>main(){ char a[]="\n123\\"; printf("%d,%d\n",strlen(A) ,sizeof(A) );}
“printf("%d\n",strlen("\t\"023\xABC\n");”语句的输出结果是______。
有以下程序includemain(){ char p[20]={'a','b','c','d'},q[ ]="abc",r[ ]="abcde';strcat(p,r) ;strcpy(p+strlen(q),q);printf("%d\n",strlen(p));}程序运行后的输出结果是
有以下程序 include<string.h> main() { char *p=“abcde、Ofghjik\0”; printf(“%d\n”,strlen(p)); } 程序运行后的输出结果
下列程序的输出结果是()。 include<stdio.h> include<string.h> main() { char a[]="\n123\\"; printf("%d,%d\n",strlen(a),sizeof(a)); }
以下程序的输出结果是()。 char str[15]=”hello!”; printf(“%d\n”,strlen(str));
◑有以下程序◑include◑include◑main( )◑{char x[]=“STRING”;◑x[0]=0;x[1]=’\0’;x[2]=’0’;◑printf(”%d%d\n”,sizeof(x),strlen(x));◑}◑程序运行后的输出结果是( )。◑6 1◑7 0◑6 3◑7 1
请读程序片段(字符串内没有空格):printf(%d\n,strlen(ATS\n012\1\\));的输出结果是()
设已执行预编译命令include<string.h>,以下程序段的输出结果是char s[]=" an apple" ;printf(" %d\n",strlen(s));
有以下程序 include <stdio.h> include <string.h> void fun(char,*s[],int n) { char *t; int i,j; for(i=0;i<n-1;i++) for(j=i+1;j<n;j++) if(strlen(s[i])>strlen(s[j])) {t=s[i];s[i]:s[j];s[j]=t;} } main() { char *ss[]={"bcc","bbcc","xy","aaaacc","aabcc"}; fun(ss,5); printf("%s,%s\n",ss[0],ss[4]); } 程序的运行结果是
有以下程序: include<strintg.h> main { char p[20]={a,b,c,d),q[]="abc",r[]=" abcde"; strcpy(p+strlen(q),r);strcat(p,q); printf("%d%d\n",sizeof(p),strlen(p)); } 程序运行后的输出结果是()。
若有以下定义和语句:char*s1="12345",*s2="1234";printf("%d\n",strlen(strcpy(s1,s2)));则输出
下面程序段的运行结果是()。main(){char str【20】=”hello\0adb”printf(“%d \n”,strlen(str)));}