Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can I set an array's size at run time?

Answer Posted / shalabh

This can be done by using malloc...if u have an integer
array then ...you can ask user the size..and then allocate
memory for integers...at the run time...using malloc()

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you please explain the difference between exit() and _exit() function?

1083


What is array in c with example?

1356


How to Throw some light on the splay trees?

1101


Why c is called procedure oriented language?

1106


How do you print only part of a string?

1068


What is this infamous null pointer, anyway?

1104


Differentiate between calloc and malloc.

1318


How can I read a binary data file properly?

1247


Is calloc better than malloc?

1075


Does c have an equivalent to pascals with statement?

1062


Can 'this' pointer by used in the constructor?

1133


What is %s and %d in c?

1105


How are 16- and 32-bit numbers stored?

1326


What are the 5 types of organizational structures?

1133


When should you use a type cast?

1181