阅读下列程序,则在执行后,程序的运行结果为().#include"stdio.h...);printf("%s\n",a);}
举一反三
- 有以下程序 # include<stdio .h> main() { char s[」=”rstuv"; printf(”%c\n”,*s+2); } 程序运行后的输出结果是
- 阅读下面程序,程序执行后的结果为( )。 #include "stdio.h" main() { char *str="abcdefghijklmnopq"; while(*str++!='e'); printf("%c\n",*str); }
- 以下程序运行后的输出结果是 【19】 。#include <stdio, h>main( ) char c1 ,c2; for( el =’ 0’, c2 =’9’; e1<c2; c1 + + , c2 -- ) printf(" %c%c", c1, c2 ); printf("\n" );
- 阅读下面程序,则执行后的结果为_____#include [stdio.h]int main(){ char *str="abcdefghijklmnopq"; while(*str++!=′e′); printf("%c\n",*str);}
- 要求以下程序的功能是计算:s=1+1/2+1/3+……+1/10 #include void main() { int n; float s; s=1.0; for(n=10;n>1;n--) s=s+1/n; printf("%6.4f\n",s); } 程序运行后输出结果错误,导致错误结果的程序行是( )。