提交 1470753e 编写于 作者: L luxin

opt 1 exercise for array

上级 91fdab95
...@@ -10,7 +10,7 @@ int main(int argc, char **argv) ...@@ -10,7 +10,7 @@ int main(int argc, char **argv)
{ {
int arr[LEN] = {2, 5, 1, 10, 4, 8, 6, 3, 9, 7}; int arr[LEN] = {2, 5, 1, 10, 4, 8, 6, 3, 9, 7};
int i, j, max_value, position; int i, j, max_value, position;
_____(1)_____ _____(1)_____;
printf("数组中的最大值为:%d\n", max_value); printf("数组中的最大值为:%d\n", max_value);
printf("最大值在数组中的下标为:%d\n", position); printf("最大值在数组中的下标为:%d\n", position);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册