yes, it is called dynamic allocation and if you use arul's (first) example, memory is allocated in compile time.
if you use C++, get used to pointers.. 
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
|