Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is is possible to declare variable size static global array?

Status
Not open for further replies.

hunghsun

Programmer
Aug 25, 2002
31
0
0
US
I wish to create a static global array of something that could change each time the program is run base on some input (i.e. command line input size. Is it possible to do this?
 
you can define a global pointer variable and set it's size using the malloc function.
correct me if i am wrong!
 
how then could you access the individual element? Basically i want to have a hash table with variable size.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top