单项选择题

阅读下列程序段,程序的输出结果为( )。
#include <stdio.h>
#define M(X, Y) (X) *(Y)
#define N(X, Y) (X)/(Y)
main()
int a=5, b=6, c=8, k;
k=N(M(a, b), c);
printf("%d\n", k);

A) 3
B) 5
C) 6
D) 8
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序执行后的输出结果是()。 #include <stdio.h> void func1(int i); void func2(int i); char st[]= hello, friend! ; void func1(int i) pnintf( % c1, st[i]); if(i<3) i+=2; func2(i); void func2(int i) printf( %c , st[i]); if(i<3) i+=2; func1(i); main() int i=0; func1(i); printf( n );

A. hllo
B. heel
C. hlo
D. hlm

单项选择题
以下scanf函数调用语句中对结构体变量成员的引用不正确的是()。 struct pupi1 char name[20]; int age; int sex; pup[5], *p; p=pup;

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

相关试题
  • 有以下程序: #include <stdio.h> m...
  • 有以下程序: #include <stdio.h> m...
  • 若有以下定义的语句: struct student i...
  • 以下程序的输出结果是( )。 struct HA...