void reverse_array(int a[],int cnt){
    int first,last;


    for (first = 0,last = cnt - 1;first < last;first ++,last –){
        inplace_swap(&a[first],&a[last]);
    }
}

相关文章:

  • 2021-08-29
  • 2021-09-30
  • 2022-01-13
  • 2021-05-19
  • 2021-05-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-02-27
相关资源
相似解决方案