✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Consider the following pseudocode. Assume that it will compile and all relevant libraries are included.
============================================================
int arr_size=5;double sum=0;double grades[5] = {1,1,1,1, 1};void *sumThread(void * input){ for(int i=0;i<arr_size;i++){
sum+=grades[i];
}
}
void main (int argc, char *argv){ pthread_t thread0; pthread_create(&thread0, NULL, sumThread, NULL); printf("Sum=%d", sum);}
============================================================Which of the following outputs are possible with this program?