一.代码
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{int arr[] = { 1,2,3,4,5,63,7,8,9,11 };int sz = sizeof(arr) / sizeof(arr[0]);int max = arr[0];int i = 0;for (i = 1; i < 10; i++){if (arr[i] > max)max = arr[i];}printf("%d\n", max);return 0;
}
二.运行结果