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 apply link and association interchangeably?

1083


Which node is more powerful and can handle local information processing or graphics processing?

1270


Is c is a low level language?

1077


What are the features of c language?

1027


Explain how do you view the path?

1100


simple program of graphics and their output display

1951


How a string is stored in c?

1025


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

967


Why is c still so popular?

1011


What is the use of linkage in c language?

1018


What is the difference between local variable and global variable in c?

1171


What is the difference between declaring a variable and defining a variable?

1201


Is c dynamically typed?

1104


Why n++ execute faster than n+1 ?

2864


How many main () function we can have in a project?

1073