Results 1 to 2 of 2
-
02-05-2010, 12:28 PM #1
Freshman
- Join Date
- Feb 2010
- Location
- U.K
- Posts
- 11
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
what is the use of array in c language??
Declaration of arrays:
Like any other variable arrays must be declared before they are used. The general form of declaration is:
type variable-name[50];
The type specifies the type of the elements that will be contained in the array, such as int float or char and the size indicates the maximum number of elements that can be stored inside the array for ex:
float height[50];
Declares the height to be an array containing 50 real elements. Any subscripts 0 to 49 are valid. In C the array elements index or subscript begins with number zero. So height [0] refers to the firstelement of the array. (For this reason, it is easier to think of it as referring to element number zero, rather than as referring to the first element).
As individual array element can be used anywhere that a normal variable with a statement such as
G = grade [50]
-
04-29-2010, 03:18 AM #2
Sophomore
- Join Date
- Apr 2010
- Posts
- 69
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
your message have error.
Similar Threads
-
Which language u like most???
By spidersense101 in forum General TalkReplies: 70Last Post: 06-04-2013, 03:25 AM -
Alibaba Clone Multi Language B2B Trade Marketplace Website Script with 31 Languages
By alibaba-clone in forum WebsitesReplies: 8Last Post: 12-05-2010, 08:55 AM -
A Query Language for XML
By remo25 in forum General TalkReplies: 0Last Post: 04-21-2010, 05:39 PM -
(beginner) Coldfusion: variable to change language
By Abina in forum ColdFusionReplies: 1Last Post: 01-31-2010, 10:49 AM -
What is Markup Language
By manik in forum Web Development - Programming & CodingReplies: 4Last Post: 01-27-2010, 08:04 AM



Reply With Quote

