Question: on our c program of reading numbers from the file and determining whether the number is prime number or not a prime number using a
on our c program of reading numbers from the file and determining whether the number is prime number or not a prime number using a primecheck function if the numbers are prime we are suppose to write those prime numbers along with prime number count to the new output file our program is using struct variable, a prime function to the check the prime numbers and a thread function to send the prime numbers to the main function. In our struct variable we have a pointer int a which is shared by both the main function to send the numbers from the file to the thread function to work on it and the thread function is suppose to use the numbers from this pointer to check if the numbers are prime numbers or not and if they are prime numbers the thread function is suppose to send the prime numbers and the prime count to the main function. how do we use this pointer int a to point to the numbers sent from main function in our thread function
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
