I think that you should start a new thread for that. Furthermore, you should make an attempt before asking.
Type: Posts; User: laserlight
I think that you should start a new thread for that. Furthermore, you should make an attempt before asking.
What this means is that you should change void main to int main.
These should not be happening if you changed the fprintf call to what I described.
I suggest that you post your current code...
If you want to print to a file, sure. The problem is that you are using a wrong format specifier. It should have been:
fprintf(fp, "%d\n", random_number);
You seem to have got it right in the next line:
printf ( "%d\t", random_number) ;