Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Why do I get errors in my code only if I save the file in C-Free?

RockThis52RockThis52 Member Posts: 4
I have a c program that runs if I copy the code and paste it into an unsaved file but gets 10 errors if I save and name the file. I am using C-Free.
What is going on?

For those wondering, need to print a 30X30 array of random numbers.
Compute the sum of the first row and print it.
Compute the average of the diagonal and print it.
Count the number of zeros in the first column and print it.
If I remove the "srand" line. The errors disappear and the program runs, but my array is no longer random and is just a set of fixed values.

Language - C
Sign In or Register to comment.