单选题 若有宏定义如下: #define m 5 #define n m + 1 #define I n * m / 2 则执行以下语句后, 输出结果是( ) printf("%d, %d", l, m) ;
相关试题
单选题 下面程序的输出结果是( ) # 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 ) ;}
单选题 以下程序的运行结果是( )。 # include “stdio.h” main ( ) { struct date { int year , month , day ; } today ; printf (“%d\n”,sizeof(struct date)); }
单选题 以下选项中, 对指针变量p的正确操作是( )。
单选题 以下程序的运行结果是( )。 typedef union {long a[ 2 ] ; int b[ 4 ] ; char c[ 8 ] ; } TY ; TY our ; main ( ) { printf ( " % d \ n " , sizeof ( our ) ) ;}
单选题 #include struct TagNode { int nI; struct TagNode* pNext; } ; void main ( void ) { struct TagNode tag; printf("%d \n", sizeof(tag) ) ; } 运行结果是( )
单选题 对于如下两种形式 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 ) ) ; 打印结果分别是( )
单选题 下面程序段( )。 int x=3,y; do{y=x--; if (!y) {printf ("x");continue;}printf ("#"); } while(x>0&&x<3);
单选题 已知字符 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);}