您现在的位置:在线题库 >> 计算机类 >> C语言
  • ID:9372-9246
    printf("%xn", (0x19 <<1) & 0x17);的输出结果是

  • 相关试题查看更多

  • ID:9372-2106

    下列程序的运行结果是

    #include "math.h"

    main()

    { int m,k,i,n=0;

    for(m=6;m<15;m++)

    { k=sqrt(m);

    for(i=2;i<=k;i++)

    if(m%i==0)break;

    if(i>=k+1){ printf("%3d",m);n=n+1; }

    }

    }

    查看解析

  • ID:9372-10646

    设有static char str[ ]="Beijing";

    则执行printf("%d\n", strlen(strcpy(str,"China")));

    后的输出结果为( )

    A) 5 B) 7 C) 12 D) 14

    查看解析

  • ID:9372-10650

    下面四个选项中,均是C语言关键字的是:( )

    A. auto enum include B swith typedef continue

    C signed union scanf D if struct type

    查看解析

  • 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-7015

    有以下程序
    main()
    { int a,b,d=25;
    a=d/10%9;
    b=a&&(-1);
    printf("%d,%d\n",a,b);
    }
    程序运行后的输出结果是( )

    A6,1 B2,1 C6,0 D2,0

    查看解析