以下程序段的输出结果是() #include voidmain(){ int i=2; for(i<=10;) {i++; if(i%3==0)printf("%d",i); elsecontinue;} }
下面程序的运行结果是______。#include#includevoidmain(){charp1[50]=”abc”,*p2,str[50]=abc
下面程序段的运行结果是( )注意输出结果的格式#include void main(){char *p=”abcdefgh”;p+=3;printf(%s\n,p);}
有以下程序 #include main() { FILE *fp;char str[10]; fp=fopen(myfile.dat,w); fputs(abc,fp);fclose(fp); fpfopen(myfile.data,a++); fprintf(fp,%d,28); rewind(fp); fscanf(fp,%s,str); puts(str); fclose(fp); } 程序运行后的输出结果是
有以下程序#include #include main(){ char str[ ][20]={“One*World”, “One*Dream!”},*p=str[1];printf(“%d,”,strlen(p));printf(“%s ”,p);}程序运行后的输出结果是( )
下面程序的输出结果是( ).#include \string.h\main( ){ char *p1=\abc\,*p2=\ABC\,str[50]= \xyz
有以下程序:#include#includevoid main(){ char str[][10]={'oneWorld','oneDream!'};printf('%d,',strlen(str[1]));printf('%s ',str[1]);}程序运行后的输出结果是______。
以下程序的输出结果是( )。#include int main(){char str[100]=\ABCDEFG\, *p=str;int i;for(i = 0; *p != ’ ’; p++,i++);printf(\%d \,i);return 0;}
请读程序段: char str[]="ABCD",*p=str print("%d\n",*(p+4)); 程序段的输出结果是______。
阅读下面程序,则执行后的结果是 include"stdio.h" main() { char str[]="tomeetme",*p; for(p=str;p<str+7;p+=2)putchar(*p); printf("\n");}
有下面程序段 include"stdio.h" include"string.h" main() { char a[3][20]={{"china"},{"isa"},{"bigcountry!"}}; chark[100]={0},*p=k; int i; for(i=0;i<3;i++) {p=strcat(p,a[i]);} i=strlen(p); printf("%d\n","i);} 则程序段的输出结果是
下列程序段的输出结果是include<iostream.h>void fun(int*x,int*y){cout<<*x<<*y;*X=3;*y=4;}vo
以下程序段的输出结果是[ ]。 include<iostream.h> void ref(int &i); void main(){int val=1
有以下程序: include<stdio.h> include<string.h> main() {char str[][20][{"One*World","One*Dream!"},*p=str[1]; prinft("%d,",strlen(p));printf("%s\n",p); } 程序运行后的输出结果是()。
设已执行预编译命令include<string.h>,以下程序段的输出结果是char s[]=" an apple" ;printf(" %d\n",strlen(s));
下面程序段的运行结果是()。 include<stdio.h> void main() {char str[]="ABC",*p=str; pfintf("%d\n",*(p+3)); }
阅读下面程序,则执行后的结果是include"stdio.h"main(){ char str[]="tomeetme",*p;for(p=str;p
下面程序段的运行结果是 include<iostream.h> void main() {char*s="abcde"; S+=2;
下面程序段的运行结果是()。main(){char str【20】=”hello\0adb”printf(“%d \n”,strlen(str)));}
现有如下程序段,则程序段的输出结果为【16】。 include’stdio.h’ intfun()}
下面程序的功能是从键盘输入一个字符串,编程将其字符顺序颠倒后重新存放,并输出这个字符串。 程序的运行结果如下: Input a string: abcdef↙ The inversed string is: fedcba 按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。 include <stdio.h> include <string.h> void Inverse(char *pStr); int main() { char str[80]; printf("Input a string:n"); gets(str); //输入字符串 Inverse(str); //将存于str数组中的字符串逆序存放 printf("The inversed string is:n"); puts(str); //输出字符串 return 0; } //函数功能: 实现字符串逆序存放 void Inverse(__________) { int len;
下面程序段的运行结果是__________。 include<stdio.h>main(); t ++ ; } }
下面程序的输出结果为()。 include<string.h> void main() char p1[7]="abc",p2 ="ABC",str[50]="xyz"; strcpy(str,strcat(p1,p2)); printf("%s",str);
已有文本文件test.txt,其中的内容为:Hello, everyone!(,与everyone之间没有空格)。以下程序中,文件test.txt已正确为“读”而打开,由此文件指针fr指向文件,则程序的输出结果是______。 include <stdio.h> void main() FILE *fr; char str[40]; …… fgets(str,8,fr); printf("%s",