• 2021-04-14
    下面程序的运行结果是:We,s()。
    #include
    intmain()
    {
    printf(“%s,%c”, "We",*"students");
    return0;
    }
  • 内容

    • 0

      以下程序的运行结果是()。#includevoidfun(char*s);intmain(){staticcharstr[]="123";fun(str);return0;}voidfun(char*s){if(*s){fun(++s);printf("%s\n",--s);}}

    • 1

      10.以下程序中,运行结果是36的有()。 A: B: include C: defineM(y) y*y intmain() { printf("%d\n",M(6+0)); return0; } D: E: include F: defineM(y) (y)*(y) intmain() { printf("%d\n",M(6+0)); return0; } G: H: include intM(inty) { returny*y; } intmain() { printf("%d\n",M(6+0)); return0; } I: J: include intM(inty) { return(y)*(y); } intmain() { printf("%d\n",M(6+0)); return0; }

    • 2

      下面程序的运行结果是: We, s ()。

    • 3

      以下程序的运行结果是 。 #include “stdio.h” fun(int n) {int s; if(n==0) s=7; else s=n+fun(n-1); return s; } main() { printf(“%d”,fun(3));}

    • 4

      下面程序的运行结果是()。#includeintmain(){inta,s,n,count;a=2;s=0;n=1;count=1;while(count<=7){n=n*a;s=s+n;++count;}printf(“%d”,s);return0;}