All Questions
4 questions
4
votes
1
answer
227
views
Create a histogram of the lengths of words
I am reading through K&R C 2nd Edition, and I am on exercise 1-13. The exercise is to write a program to print a histogram of the lengths of words in
its input. I wrote a program that successfully ...
7
votes
3
answers
435
views
K&R Exercise 1-13. Printing histogram of word lengths (vertical variant)
I'm going through the K&R book (2nd edition, ANSI C ver.) and want to get the most from it. How does the following solution look to you? Note that, for the sake of exercise, I don't want to use ...
3
votes
2
answers
1k
views
K&R Exercise 1-13. Printing histogram of word lengths (horizontal variant)
I'm going through the K&R book (2nd edition, ANSI C ver.) and want to get the most from it. How does the following solution look to you? Note that, for the sake of exercise, I don't want to use ...
6
votes
2
answers
415
views
K&R C Exercise 1-14: Histogram of the frequency of types of characters
This is for K&R C Exercise 1-14: basically asking to create a program that prints a histogram of the frequency of types of characters. This is done with very basic C functions/knowledge as covered ...