Lesson 1 Introduction To Array
Lesson 1 Introduction To Array
Lesson 1 Introduction To Array
Array
It is special type of variable that can contain or hold one or more values of
the same data type with reference to only one variable name.
10 20 30 40 50
Partial initialization
int num[5] = {10,20}; (The rest are filled with 0’s)
c = a + b ; c = a[1] + b[2] ;
c[0]= a[1]+b[2] ;
cout<<x; cout<<x[1];