Question: #include #include #include #include #define SIZE 7 int main ( ) { srand ( time ( NULL ) ) ; / / seed random number
#include
#include
#include
#include
#define SIZE
int main
srandtimeNULL; seed random number generator
int frequencySIZE; initalize all frequnecy counts to
roll the dice mil times
forint roll ; roll ; roll
sizet face rand;
frequencyface; replaces entire switch of fig from sec
printfss
"Face", "Frequency";
output frequency elements in tabular format
for sizet face ; face SIZE; face
printfzud
face, frequencyface;
how does this C code work?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
