• 2021-04-14
    下列程序段的输出结果为_____。char * s='AAA';s[0]='B';printf('%s',s);
  • 运行错误

    内容

    • 0

      有下列程序段,程序段运行后的输出结果是( )。 char *s='abcde'; s+=2; printf('%c', *s);

    • 1

      写出下列程序段的输出结果(栈的元素类型为char)。 void main(){ Stack S; char x,y; InitStack(S); x= ‘c’; y= ‘k’; Push(S,x); Push(S, ‘a’); Push(S,y); Pop(S,x); Push(S, ‘t’); Push(S,x); Pop(S,x); Push(S, ‘s’); while(!StackEmpty(S)) { Pop(S,y); printf(y); } printf(x); }

    • 2

      有以下程序段,输出结果为()。 #include <stdio.h> struct s { int a; char b; double f; }; main() { printf("%d",sizeof(struct s)); }

    • 3

      智慧职教: 下列程序段的运行结果是( )。 char s[6];s="abcd"; printf("\"%s\"\n",s);

    • 4

      若有下列程序段char x[80];scanf(“%s”,x);printf(“%s”,x);从键盘上输入字符串“zhang san”,则输出结果为(