C algorithm volume 1 (Third edition) Error Correction

Source: Internet
Author: User

The following are some bugs I found when I checked the first volume of C algorithm. If any of them is incorrect, I would like to thank you for your attention. (Bugs will be updated later)

* When Using arrays, foreigners generally like to use the first element of the array as a variable or directly do not need to use it.

For example, the # define bin (a) 1 + count (A) of p317 is like this.

C algorithm first-volume bug
Page number Error description Solution
P311 The digit function in quicksortb is not applicable to processing the bit of a single character according to the previous definition. When processing a single character (that is, the instance for processing the character later), digit is defined as # define digit (A, B) (a)> (bitsbyte-(B) + 1) & (unsigned char) 0x01 ))
     
     
     
     
     
     

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.