Free
|
||
|
C Language Tutorial with Free C Programs |
||
Arrays: - C Programming TutorialArray can be easily defined as a variable that hold multiple elements which has the same data type. C uses arrays as a way of describing a collection of variables with identical properties. type variable_name[lengthofarray]; Example of Array Declaration: double arr[100] Another example :
int myArray[5] = {1, 2,
3, 4, 5}; //declaring and initialize the array in
one statement
Declaration of a 2D array in C language: Example:
int array[3][3] = {1, 2,
3, 4, 5}; See this program of Matrix Multiplication using the concept of Arrays. Multiplying Matrices with Each Other. © COPYRIGHT 2009 ALL RIGHTS RESERVED FREECPROGRAMS.COM
|
||