Array Programs

Defining array in c lanaguage

Defining Array in c

This program illustrate the concept of defining array in c.

  • Array store the elements in contiguous memory location.
  • It can store a fixed-size sequential collection of elements of the same type.
  • The array size must be a integer type and it should be greater than 0.
  • In array the lowest address indicate the first element and the highest address indicate the last element.
  • Syntax to define array in java is “datatype arrayname[]=new datatype[size]”.
  • eg int x[]=new int[100].
  • Picture repersentation of array
  • defining array in c

    OUTPUT:-


    Comment below if you are facing any problem


    Also read

    Java simple program of defining array


    Summary
    Defining array in c lanaguage
    Article Name
    Defining array in c lanaguage
    Description
    This program illustrate the concept of defining array in c.Array can store a fixed-size sequential collection of elements of the same type.
    Author
    Publisher Name
    Scanfcode
    Publisher Logo