Any question

about what we have covered

Today's topic is Array

Data structure

 

is a particular way to organise data in a computer

so that it can be used efficiently.

   A    R   R   A   Y

What is array?

Where it is used?

 

To find answers to these questions it would be better to discuss some problems related to this.

How to store marks of N numbers of student?

Array is a data structure to  organize or collect data of same data type.

Visualization of array:

 

int num[n];

 


int num[5];

num = {2,8,7,6,0};

                                Initializing an array

 

int marks[n];

 

n is the size of array it must be provided while intializing an array.

 

 

How memory is assigned to an array? 

deck

By MRITUNJAY GOUTAM