Computing.Net > Forums > Programming > C program printing array

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

Reply to Message Icon

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]);
}



Sponsored Link
Ads by Google

Response Number 1
Name: untrsb
Date: September 12, 2008 at 15:59:20 Pacific
Reply:

nevermind, got it to work how I wanted using a for loop


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C program printing array

C programming www.computing.net/answers/programming/c-programming-/5827.html

c programming www.computing.net/answers/programming/c-programming/2437.html

C Programing HELP www.computing.net/answers/programming/c-programing-help/13625.html