LEARNINGS OF THE WEEK
BY: Sharra Mae S. Tagaro IV- Rizal
This week we had a short discussion of arrays.
*ARRAYS-it is a collection of variables of the same data type that is referenced by a common name.
The general form for an array declaration is as follows:
type array_name[size];
Where:
*type is any valid data type in Turbo C which declares the type of values that array will hold. *array_name is a valid variable name which will name the array.
*size defines how many elements the array will hold.
l
int number[100] , answer [25];
->Arrays can give initial values during the declaration.This is called array initialization.
int Array1[5]={25,5,7,11,163};
And by the way...we had already taken our third periodical exam..That's all!
No comments:
Post a Comment