Day 6 Training

 Arrays: Collection or group of similar data type elements

variables:

int var1; 

int var2;


Arrays: collection of similar data type elements 


int 

1

2

34

23


int arr[100]; 


Array Indexing: 


100 elements --- 100 student marks 


90th roll no -->34 

38 

34-->38 



Lesson page no 

Intro

unt 1 2

unt 2 11


{100,20,11,14} 








style 2

int arr[]={1,2,100};




style 3

int arr[10];

arr[0]=11;

arr[1]=23;


Post a Comment

0 Comments