您现在的位置:在线题库 >> 计算机类 >> C语言
  • ID:9372-1205

    有以下程序

    #include

    main()

    { int a,b,c=246; a=c/100%9; b=(-1)&&(-1);

    printf("%d,%d\n",a,b); }

    输出结果是

    A 2,1 B. 3,2 C. 4,3 D. 2,-1

  • 相关试题查看更多

  • ID:9372-2162

    设有以下说明语句

    struct stu

    { int a;

    float b;

    } stutype;

    则下面的叙述不正确的是

    A.struct是结构体类型的关键字

    B.struct stu是用户定义的结构体类型

    C.stutype是用户定义的结构体类型名

    D.ab都是结构体成员名

    查看解析

  • ID:9372-8368

    写出以下程序的执行结果

    #include "stdio.h"

    main()

    { int k;

    int a[3][3]={1,2,3,4,5,6,7,8,9};

    for(k=0;k<3;k++)

    printf(“%d”,a[k][2-k]);

    }

    查看解析

  • ID:9372-2143

    读下面的程序

    #include

    void main()

    {static int a[]={1,2,3,4,5}

    int *p=a

    printf("%d",*++p)

    printf("%d",*p++)

    }写出运行的结果

    查看解析

  • ID:9372-8366

    以下程序运行后的输出结果是
    void swap(int x,int y)
    { int t;
    t=x;x=y;y=t;
    printf("%d %d ",x,y);
    }
    main()
    { int a=3,b=4;
    swap(a,b);
    printf("%d %d\n",a,b);
    }

    查看解析

  • ID:9372-10683

    有以下程序
    main( )
    { int t=1,i=5;
    for(;i>=0;i--) t*=i;
    printf(“%d\n”,t);
    }
    执行后输出结果是

    查看解析