Write a C program that generates one hundred random integers between 0 and 9 and displays the count for each number.
Make use of rand() to generate a random integer between 0 and 9. Use an array of ten integers to store the counts for the number of 0's, 1's, ... , 9's.
Please find attached 348061.c that has been tested for successful compilation using "gcc -Wall 348061.c", and successful execution.
Attached C program ...
Attached C program source code has UNIX style newline endings, so make sure that you use a text editor (like Wordpad) that understands UNIX style newline endings, to view it properly on Windows.
Solution also gives the output from an execution of the attached program.