Welcome to WebmasterServe!

FREE TO JOIN! Join us now to engage in informative and friendly discussions about Webmastering, SEO, SEM, Internet Marketing, Programming, Graphic Design, Online Jobs and more. What are you waiting for? Ready to join our friendly community? It takes just one minute to register.

Dismiss Notice

Join WebmasterServe Forums 
Join the discussion! Have a better idea or an opinion? It takes just one minute to register Click Here to Join

My 2 Cents Arrays In C++

Discussion in 'General Programming Discussions' started by Swati Mishra, Mar 15, 2016.

  1. Swati Mishra

    Yellow Belt

    Joined:
    Dec 28, 2015
    Messages:
    644
    Ratings:
    +105 / -0
    An array is the collection of elements of single data type that is stored in adjacent memory locations. If we take the example for the array then it is defining 20 integer variables for storing the score of 20 students in class, one integer array can be defined containing the 20 elements to store data.
    Syntax

    <data_type> <variable_name>[<dimension_size>]

    Example

    Int arr [20];
     
  2. Prasoon Arora

    Yellow Belt

    Joined:
    Feb 1, 2016
    Messages:
    472
    Ratings:
    +24 / -0
    An array is defined as a kind of data structure which is used to store a given or fixed define size of mentioned elements in a sequential manner belonging to same type. The array can be further described as mentioned below :
    [​IMG]
    The figure shows the array to store 10 elements ranging from 0 to 9.
     

Share This Page