Gururagav
On this page, you find all documents, package deals, and flashcards offered by seller gururagav.
- 1
- 0
- 0
Community
- Followers
- Following
1 items
ARRAYS IN DATA STRUCTURE
Declaration and Initialization of Arrays 
Arrays are used to store multiple items of the same data type. In C, arrays can be declared as follows: 
 
data_type array_name[array_size]; 
 
Here, data_type is the type of data that the array will store, array_name is the name of the array, and array_size is the number of elements that the array can hold. 
 
For example, the following code declares an array numbers that can hold 5 integers: 
 
int numbers[5]; 
 
Initialization of Arrays 
Arrays can be...
- Summary
- • 2 pages •
Declaration and Initialization of Arrays 
Arrays are used to store multiple items of the same data type. In C, arrays can be declared as follows: 
 
data_type array_name[array_size]; 
 
Here, data_type is the type of data that the array will store, array_name is the name of the array, and array_size is the number of elements that the array can hold. 
 
For example, the following code declares an array numbers that can hold 5 integers: 
 
int numbers[5]; 
 
Initialization of Arrays 
Arrays can be...