#include <stdio.h>
#include <stdlib.h>
int main()
{
int a[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9};
int max = a[0];
int size = sizeof(a) / sizeof(a[0]);
int i = 0;
for ( i = 0; i < size; i++)
{
if (max < a[i])
{
max = a[i];
}
}
printf("max of a:%d\n",max);
return 0;
}
01-04
873
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-21
710
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-14