Results 1 to 2 of 2
  1. #1
    aiden44 is offline Freshman
    Join Date
    Feb 2010
    Location
    U.K
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default 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]

  2. #2
    jettlee1 is offline Sophomore
    Join Date
    Apr 2010
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    your message have error.

Similar Threads

  1. Which language u like most???
    By spidersense101 in forum General Talk
    Replies: 100
    Last Post: 09-20-2014, 10:57 PM
  2. Replies: 8
    Last Post: 12-05-2010, 08:55 AM
  3. A Query Language for XML
    By remo25 in forum General Talk
    Replies: 0
    Last Post: 04-21-2010, 05:39 PM
  4. Replies: 1
    Last Post: 01-31-2010, 10:49 AM
  5. What is Markup Language
    By manik in forum Web Development - Programming & Coding
    Replies: 4
    Last Post: 01-27-2010, 08:04 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS