将一个数组中的数据按相反的顺序存储(将数组中的数据逆序输出)

第一种方法,采用数组下标的方式,调用函数完成逆序输出字符串web #include<stdio.h> #include<stdlib.h> void Reverse(int arr[], int sz) { int tmp = 0; int left = 0; int right = sz - 1; while (left < right) {
相关文章
相关标签/搜索