Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- collection of similar type elements
- index based data structure
- linear data structure
- Array can be created in two ways
- ways :
- 1. create an object
- // datatype[] array_name = new datatype[size];
- // datatype array_name[] = new datatype[size];
- size = +ve
- 2. using literal
- // datatype[] array_name = { element1 , element2, element3 };
- size = no of elements
Add Comment
Please, Sign In to add comment