In this video I go through the solution to exercise 1-20 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. This program is the detab programs that replaces tabs by the relevant amount of spaces.
1-20: Write a program detab that replaces tabs in the input with the proper number of blanks to space to the next tab stop. Assume a fixed set of tab stops, say every n columns. Should n be a variable or a symbolic constant?
1-20 3: 21
Download
0 formats
No download links available.
The C Programming Language K&R: 1-20 Solution | NatokHD