Array is a data structure consists of a group of elements of same data type. We can think it as collection of variable of similar data type.
Array prototype:
Example:
Suppose you have a team of 10 employees. Id is given for every employee. You want to store id, age and salary of each employee. How will you do that? From the concept of variable, you can declare 10 variables to store individual id, like: intemployeeId0,...
C Arrays
Array prototype:
Code:
Data_type array_name[array_size]
Suppose you have a team of 10 employees. Id is given for every employee. You want to store id, age and salary of each employee. How will you do that? From the concept of variable, you can declare 10 variables to store individual id, like: intemployeeId0,...
C Arrays