February 20th, 2003, 03:16 PM
What type of arrays used most?
What type of arrays does everyone use most in here for everyday programming.
Last edited by andy3109; February 20th, 2003 at 03:19 PM.
February 20th, 2003, 03:23 PM
quite often when i re-visit my code, i think "man, you should have used linked lists instead....", but my (probably bad) practise is multi-dimensional arrays. probably wasting lots of memory with them...
but then - what does memory cost nowadays? (flame me! i said "jehova"!!!)
February 20th, 2003, 04:05 PM
These days I usually use 1-d arrays mostly. If I need to store multiple pieces of information, I usually declare a struct and then declare a 1-d array of that struct type. The only time I've used 2-d arrays recently was a few years ago for an assignment on 3-d graphics.