单项选择题

以下程序的输出结果是()
main()
int a=4,b=3,c=2,d=1;
printf("%d",a>ba:d>cd:b);

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

<上一题 目录 下一题>
热门 试题

单项选择题
以下程序(程序左边的数字为附加的行号)() 1#include<str.h> 2#include<stdio.h> 3main() 4 char s[]= string ; 5puts(s); 6strcpy(s, hello ); 7printf( %3s n ,s);

A.没有错
B.第1行有错
C.第6行有错
D.第7行有错

单项选择题
设有如下定义 struct ss char name[10]; int age; char sex; std[3],* p=std; 下面各输入语句中错误的是()

A.scanf("%d",&(*p).age);
B.scanf("%s",&std.name);
C.scanf("%c",&std[0].sex);
D.scanf("%c",&(p->sex));

相关试题
  • (2S)以下叙述中错误的是( )。
  • 软件(程序)调试的目标是
  • 若变量已正确定义,下列正确的程序段是()。
  • 已有定义:char a[]= xyz ,b[]='...
  • 设有条件表达式:(EXP)i++;j--,则...