A
arnuld
i was not even able to understand how should i proceed tow rite
solution for this exercise:
"Write a program to print a histogram of the frequencies of different
characters in its input."
then i tried this: http://clc-wiki.net/wiki/K&R2_solutions:Chapter_1:Exercise_14
i did not understand the following in Histogram solution:
1.) on X-axis, all i see are "0000001111112222333" what do they
represent ?
2.) Y-axis, starts from 0 and goes to 476, whereas there are only 256
characters in ASCII.
i guess, Y-axis represents how many times a character occurs but how
do i know how many times 'a' occured and how many times "?" occured or
how many times a particular "character" occured ?
solution for this exercise:
"Write a program to print a histogram of the frequencies of different
characters in its input."
then i tried this: http://clc-wiki.net/wiki/K&R2_solutions:Chapter_1:Exercise_14
i did not understand the following in Histogram solution:
1.) on X-axis, all i see are "0000001111112222333" what do they
represent ?
2.) Y-axis, starts from 0 and goes to 476, whereas there are only 256
characters in ASCII.
i guess, Y-axis represents how many times a character occurs but how
do i know how many times 'a' occured and how many times "?" occured or
how many times a particular "character" occured ?