Back to Browse

The C Programming Language K&R: 1-22 Solution to fold program

232 views
Sep 24, 2024
19:56

In this video I go through the solution to exercise 1-22 from the C Programming Language book by Brian Kernighan and Dennis Ritchie. All content is self-contained and nothing is used in the video that hasn't yet been introduced in the book. This video goes through a program that 'folds' input lines that are longer than a given limit. 1-22: Write a program to "fold" long input lines into two or more shorter lines after the last non-blank character that occurs before the n-th columns of input. Make sure your program does something intelligent with very long lines, and if there are no blanks or tabs before the specified column.

Download

0 formats

No download links available.

The C Programming Language K&R: 1-22 Solution to fold program | NatokHD