Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
Arrays
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Geekibz
New Member
Join Date:
Jan 2008
Posts:
12
#1
Arrays
Feb 19 '08, 10:29 AM
Hi Just started learning arrays.In C how do you repersent 3 d arrays?
Banfa
Recognized Expert
Expert
Join Date:
Feb 2006
Posts:
9067
#2
Feb 19 '08, 11:46 AM
You just add the number of array indexes for the number of dimensions you require
[code=c]
int array1d[10]; /* A 1 dimensional array */
int array2d[10][10]; /* A 2 dimensional array */
int array3d[10][10][10]; /* A 3 dimensional array */
[/code]
Comment
Post
Cancel
weaknessforcats
Recognized Expert
Expert
Join Date:
Mar 2007
Posts:
9214
#3
Feb 19 '08, 04:17 PM
Read this:
http://www.thescripts.com/forum/thread772412.html
.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment