You are getting good advice above.
Making the first malloc() into a calloc() is not necessary since immediately you initialize all of the elements of this dimension in the first for loop when you...
Type: Posts; User: pheininger
You are getting good advice above.
Making the first malloc() into a calloc() is not necessary since immediately you initialize all of the elements of this dimension in the first for loop when you...
Old:
double arr[30][30];
New:
double arr[30][30]={0.0};
Old:
i= (int) rand()%30;
I am going to assume that you are now explicitly initializing review[MAX_REVIEWERS][MAX_OBJECTS] (formerly known as arr[30][30]) to 0.0. [Use names for these things appropriate to your language and...
Quoting the thread title:
"How to generate random number without repetition?"
I do not believe there is a way directly. What I would do is either:
fill the data structure with all possible...