排序
指针变量找出一维数组中的最大值和最小值
编写一个程序通过指针变量找出一维数组中的最大值和最小值,并交换最大值与最小值的位置。 #include 'stdio.h'#include 'conio.h'#define N 5void main( ){ int a[N],*pmax,*pmin,...
统计数组a中所有偶数的个数
以下程序的功能是统计数组a中所有偶数的个数。 #include 'stdio.h' void main( ) {int a[10],*p,sum=0; printf('请输入10个整数:'); for(p=a;p < a+10;p++) scanf('%d',...
输入一个3×6的二维整型数组
输入一个3×6的二维整型数组,输出其中最大值、最小值及其所在的行列下标。 #include 'stdio.h'#include 'conio.h'#define M 3#define N 6 void main( ) { int a[M][N],max,...






