Home
StuMan1337 [entries|archive|friends|userinfo]
StuMan1337

[ website | My Website ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Programming question/survey [Apr. 3rd, 2008|09:17 pm]
[Tags|, ]
[mood |annoyedannoyed]

Lets suppose you have a multidimensional array filled with data declared like:
int md_array[5][10][3]

And you wanted to put the values a 1D array declared like:
int 1d_array[150]

How would you do it? Its not so much that I need to know how its done, I want to know how you'd do it. This isn't an obfuscated c contest so please post something that you'd actually use. There's a reason why I'm asking this, but I'll reveal it after I get a few replies.

C style syntax preferred...
link5 comments|post comment

navigation
[ viewing | most recent entries ]

Advertisement