填空题

以下程序的输出结果是______。 #include <stdio.h> main() { int a[5]={2,4,6,8,10},*p; p=a; p++; printf("%d",*p); }

【参考答案】

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

填空题
以下程序的输出结果是______。#include <stdio.h>void swap(int *a, int *b){ int *tt=a; a=b; b=t}main(){ int i=3,j=5,*p=&i,*q=&j;swap(p,q); printf( %d %d n ,*p,*q);}
填空题
以下函数rotate的功能是:将a所指N行N列的二维数组中的最后一行放到b所指二维数组的第0列中,把a所指二维数组中的第0行放到b所指二维数组的最后一列中,b所指二维数组中其他数据不变。#define N 4void rotade(int a[][N],int b[][N]){ int i,j;for(i=0;i<N;i++){ b[i][N-1]= [9] ; [10] :a[N-1][i];}}
相关试题
  • 以下程序的运行结果是______。#incl...
  • 设有定义“stmct{int a;float b;char...
  • 下面程序的运行结果是______。#incl...