C语言

第741题

有以下程序

#include <stdio.h>
main()
{
    int a=1, b=0;
    for(; a<5;a++)
    {
        if(a%2 == 0)break;
        continue;
        b += a;
    }
    printf("%d \n",b);
}

程序运行后的输出结果是()。

第742题

下列叙述中正确的是()。

第743题

若有定义语句

char c='\101';

则变量C在内存中占()。

第744题

以下选项中非法的字符常量是()。

第745题

以下选项中不属于字符常量的是()。

第746题

以下不合法的字符常量是()。

第747题

以下选项中非法的C语言字符常量是()。

第748题

以下选项中非法的C语言字符常量是()。

第749题

以下合法的转义字符是()。

第750题

以下不是合法C语言转义字符的是()。

第751题

有以下定义语句,编译时会出现编译错误的是()。

第752题

已知字母A的ASCII码值为65,若变量kk为char型,以下不能正确判断出kk中的值为大写字母的表达式是()。

第753题

有以下程序(字母A的ASCII代码为65)

#include <stdio.h>
main()
{
    char c1 ='A',c2 ='Y';
    printf("%d, %d\n",c1,c2);
}

程序运行后的输出结果是()。

第754题

有以下程序:

#include <stdio.h>
main()
{
    char ch='Z';
    ch=(ch-'A'+1)%26+'A';
    putchar(ch);
}

程序的运行结果是()。

第755题

若有以下程序

#include <stdio.h>
main()
{
    char c1, c2;
    c1='C'+'8'-'3';
    c2='9'-'0';
    printf("%c %d\n",c1,c2);
}

则程序的输出结果是()。

第756题

有如下程序

#include <stdio.h>
main()
{
    if('\0'== 0)putchar('X');
    if('0'== 0)putchar('Y');
    if('a'>'b')putchar('Z');
    printf("\n");
}

程序运行后的输出结果是()。

第757题

有如下程序:

#include <stdio.h>
main()
{
    char ch='A';
    while(ch<'D')
    {
        printf("%d",ch-'A');
        ch++;
    }
    printf("\n");
}

程序运行后的输出结果是()。

第758题

有如下程序:

#include <stdio.h>
main()
{
    char ch='M';
    while(ch!='K')
    {
        ch--;
        putchar(ch);
    }
    printf("\n");
}

程序运行后的输出结果是()。

第759题

有以下程序:

#include <stdio.h>
void fun(char *c)
{
    while(*c)
    {
        if(*c>='a'&&*c<='z')*c=*c-('a'-'A');
        c++;
    }
}
main()
{
    char s[81];
    gets(s);
    fun(s);
    puts(s);
}

当执行程序时从键盘上输入Hello Beijing<回车>,则程序的输出结果是()。

第760题

有以下程序

#include <stdio.h>
main()
{
    char b,c;
    int i;
    b='a';
    c='A';
    for(i=0;i<6;i++)
    {
        if (i%2) putchar(i+b);
        else putchar(i+c);
        }
    printf("\n");
}

程序运行后的输出结果是()。