- Array has to be declared before using it in C Program
- Array is nothing but the collection of elements of similar data types
- Data Type
- Valid Identifier
- Size of Array
- Type of the Array
- Name of the Array
- Number of Dimension
- Number of Elements in Each Dimension
Syntax :
data_type array_name [size1][size2].....[sizen];
- data_type : Data Type of Each Element of the array
- Array_name: Valid variable name
- [size1][size2].....[sizen]: Dimensions of the Array
Examples : 2// Array of 10 integer roll numbers int roll[10]
// Array of 80 characters char name[80]
0 Comments:
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email