Bug in quicksort example (K&R C book)?

后端 未结 4 858
有刺的猬
有刺的猬 2021-02-15 12:50

This quicksort is supposed to sort \"v[left]...v[right] into increasing order\"; copied (without comments) from The C Programming Language by K&R (Second Edition):



        
4条回答
  •  星月不相逢
    2021-02-15 13:33

    Yes, you're right, although it's possibly just written that way for simplicity -- it's an example after all, not production code.

提交回复
热议问题