Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Dynamically allocating array with linked lists

array

  • Please log in to reply
1 reply to this topic

#1 mindhackerzz

mindhackerzz

    CC Newcomer

  • Member
  • PipPip
  • 10 posts
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, PL/SQL
  • Learning:Visual Basic .NET

Posted 22 September 2012 - 03:31 AM

C does not support dynamically array initialization. How you can use pointers variable or any other data type like Linklist for dynamic allocations.
  • 0

#2 neo1691

neo1691

    CC Resident

  • Advanced Member
  • PipPipPipPip
  • 53 posts
  • Location:India
  • Programming Language:C, C++, Assembly
  • Learning:Java, C++, PHP, JavaScript, PL/SQL, Assembly

Posted 23 September 2012 - 10:00 AM

You have to use dynamic memory allocating functions like malloc(), calloc() etc to achieve that.
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download