Array

33
ARRAY Tejas Patel Harekrushna Patel Page 1

description

Basic Fundamental Of Array

Transcript of Array

  • 1. ARRAY Tejas Patel Harekrushna Patel Page 1

2. Content What are arrays? Types of arrays Single dimensional array Multi dimensional arrayPage 2 3. What are Arrays? Array is a data structure, which provides the facility to store a collection of data of same type under single variable name. It is a group of consecutive memory locations having same name and type.Page 3 4. Types One dimensional Multi dimensionalPage 4 5. Single Dimensional Array Element specified by single subscript Array declaration is made by specifying the data type, its name and the number of space (size) so that the computer may reserve the appropriate amount of memory. Syntax type array_name [ size ]Base type of arrayName of No. of elements that can be array stored: Can be a integer value without the signPage 5 6. Single dimensional Array Working When user inputting data in array i=0 for(i=0;i