give an example of array with primitive data types
Answers
Answered by
0
An array is a collection of similar data types. Array is a container object that hold values of homogenous type. It is also known as static data structure because size of an array must be specified at the time of its declaration.
example--int[] arr; char[] arr; short[] arr; long[] arr; int[][] arr; //two dimensional array.
example--int[] arr; char[] arr; short[] arr; long[] arr; int[][] arr; //two dimensional array.
Similar questions