Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
C program printing array
Name: untrsb Date: September 12, 2008 at 15:48:19 Pacific OS: Windows Vista Home CPU/Ram: Core2Duo, 2GB Product: Sony
Comment:
If you have an array of 1000 entries, and you want to print them out to the screen using printf is there a way to make them into columns? I would like to do either 10 or so columns or 'x' number of columns depending on the window size.
The following is the for loop that I have to print the array, but it just does one really long column. for(i=0; i<1000; i++){ printf("%d\n",minmax[i]); }
Summary: G'day, These two examples work with TurboC 2.0. The first one is a straight copy of the basic bubble sort algorithm adapted for the C programming language. The second is a version using a function swa...
Summary: I'm posting this in desperation. This is an assignment for a C programming paper. I just can't seem to get it. The accompanying documentation says I am not to create any more variables. It also sa...
Summary: I have to write a program using arrays and input and output files...it doesn't seem like it shoud be this hard but I can't seem to figure it out...any help would be greatly appreciated. Objectives 1...