单选题 若有宏定义如下: #define m 5 #define n m + 1 #define I n * m / 2 则执行以下语句后, 输出结果是( ) printf("%d, %d", l, m) ;

A、 7, 5
B、 7, 6
C、 12, 6
D、 12, 5
下载APP答题
由4l***qv提供 分享 举报 纠错

相关试题

单选题 下面程序的输出结果是( ) # include # include void main( void ) { char *pstr1 = "abc"; char *pstr2 = "ABC"; char str[50] = "xyz"; strcat( strcat(str, pstr2)+1, pstr1) ; printf( "%s\n", str ) ;}

A、xyzABCabc
B、xyzabcABC
C、zabcABC
D、yzabcABC

单选题 以下程序的运行结果是( )。 # include “stdio.h” main ( ) { struct date { int year , month , day ; } today ; printf (“%d\n”,sizeof(struct date)); }

A、12
B、8
C、10
D、6

单选题 以下选项中, 对指针变量p的正确操作是( )。

A、int a[5],*p;p=a;
B、int a[5],*p;p=&a;
C、int a[5];int *p = a = 1000 ;
D、int a[5];int *p1,*p2=a;*p1=*p2;

单选题 以下程序的运行结果是( )。 typedef union {long a[ 2 ] ; int b[ 4 ] ; char c[ 8 ] ; } TY ; TY our ; main ( ) { printf ( " % d \ n " , sizeof ( our ) ) ;}

A、16
B、32
C、8
D、24

单选题 #include struct TagNode { int nI; struct TagNode* pNext; } ; void main ( void ) { struct TagNode tag; printf("%d \n", sizeof(tag) ) ; } 运行结果是( )

A、8
B、4
C、12
D、16

单选题 对于如下两种形式 char *text1[3] = {"123", "c/c++", "think"} ; char text2[3][8] = {"123", "c/c++", "think"} ; printf("Size of text1: %d\n", sizeof( text1 ) ) ; printf("Size of text2: %d\n", sizeof( text2 ) ) ; 打印结果分别是( )

A、Size of text1: 12 Size of text2: 24
B、Size of text1: 13 Size of text2: 24
C、Size of text1: 12 Size of text2: 13
D、Size of text1: 24 Size of text2: 24

单选题 下面程序段( )。 int x=3,y; do{y=x--; if (!y) {printf ("x");continue;}printf ("#"); } while(x>0&&x<3);

A、将输出:###
B、将输出:##
C、将输出:##*
D、是死循环

单选题 已知字符 A 的 ASCII 代码值为 65, 以下程序运行时若从键盘输入: B33. 则输出结果是( ) #include "stdio.h" void main(void) { char a,b; a=getchar(); scanf("%d",&b); a=a-'A'+'o'; b=b*2; printf("%c %c\n",a,b);}

A、. B
B、2 B33
C、A33 B
D、A33 A