In this video I go through the solution to exercise 1-16 from the C Programming Language book by Brian Kernighan and Dennis Ritchie (K&R). All content is self contained and no new concepts are used that haven't been covered in the book thus far. The video goes through an improvement on the getline function implementation. It is able to keep track of the length of the line and still print the maximum number of characters.
1-16: Revise the main function of the longest-line program so it will correctly print the length of arbitrarily long input lines, and as much as possible of the text.
1-16: 1:04
Download
0 formats
No download links available.
The C Programming Language K&R: 1-16 Solution | NatokHD