Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,628 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,042 people online right now. Registration is fast and FREE... Join Now!




arrays

 
Reply to this topicStart new topic

arrays, array allocation

jack142
post 15 Sep, 2005 - 12:26 AM
Post #1


New D.I.C Head

*
Joined: 14 Sep, 2005
Posts: 11


My Contributions


somebody pls tell abt arrays in general n short
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 15 Sep, 2005 - 04:03 AM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,176



Thanked 33 times

Dream Kudos: 25
My Contributions


Arrays can commonly be referred to as lists, or even vectors, but are essentially a data type that holds one or more instances of like data types (although this can vary by language and framework).

Read this for a clear definition of arrays.
User is offlineProfile CardPM

Go to the top of the page

pioSko
post 15 Sep, 2005 - 04:10 AM
Post #3


still.dreaming

Group Icon
Joined: 6 Jun, 2003
Posts: 1,888



Thanked 3 times

Dream Kudos: 225
My Contributions


food = [pizza, burito, taco, cheesburger] ... this is an example of an array.

way to get data from an array is by using an index. An array's index begins at zero...

food[0] = pizza
food[1] = burito
food[3] = cheesburger
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 03:38AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month