单项选择题

有以下程序
#include<stdio.h>
main()
struct nodeint n;struct node *next; *p;
struct node x[3]=2,x+1,4,x+2,6,NULL;
p=x;
printf("%d,",p->n);
printf("%d\n",p->next->n);

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

A)2,3
B)2,4
C)3,4
D)4,6
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序的输出结果是( )。 #include <stdio.h> void reverse(int a [],int n) int i,t; for(i=0;i<n 2;i++) t=a[i]; a[i]=a[n-1 -i];a[n-1-i] =t; main() int b[10]=1,2,3,4,5,6,7,8,9,10;int i,s=0; reverse(b,8); for(i=6;i<10;i++)s+=b[i]; printf( %d n ,s);
A) 22
B) 10
C) 34
D) 30
单项选择题
若有定义:char*x= abcdefghi ;,以下选项中正确运用了strcpy函数的是______。
A) char y[10];strcpy(y,x[4]);
B) char y[10];strcpy(++y,&x[1]);
C) char y[10],*s;strcpy(s=y+5,x);
D) char y[10],*s;strcpy(s=y+1,x+1);
相关试题
  • 53. 有两个C程序文件T18.c和myfun....
  • 执行以下程序的输出结果是______。#...
  • 54. 以下程序运行后的输出结果是 。 ...
  • 下面程序的功能是输出数组s中最大元素的下...
  • 51. 以下程序的输出结果是 。 #incl...