An array is a sequence of logically related data items. It is a kind of row mad of boxes with each box holding a value . Each box can be accessed by , first box , second box, third box, so on. till the nth
box.
( submit by keshaw kumar Bokaro Niit)
Chat with our AI personalities
A C array is defined as contiguous memory locations having the same data type and identified using the same name. The elements are differentiated using the index of that element within the array.
An array is used to store the details of related data, which are all of the same type. For example, to store the marks of all the students in a class or list of candidates for a job et al.
simple!! an array is a group of similar data items which are referred by a common name.
array is collection of similar datatypes.
In computing, an array is contiguous block of memory in which we can store one or more values of the same type.
ARRAY IS THE ANOTHER KIND OF VARIABLE USE IN CIT IS AN IDENTIFIERS THAT IS REFERS TO A COLLECTION OF DATA ITEMS i.e. ALL HAVE SAME NAME.
Used to replace a failed drive in a redundant array.
A disk array serves many purposes. It is a disk storage system that is capable of storing multiple disk drives. This product increases the availability and maintainability of stored information.
A single dimensional array is an array of items. A two-dimensional array is an array of arrays of items.
An irregular dimensional array is a special type of multi-dimensional array.First we must understand that a multi-dimensional array is just an array of arrays. Each element in the array is, itself, an array of elements.A regular multi-dimensional array will be an array of size n, with each element containing a separate array of size m. That is, each sub-array has the same size.An irregular multi-dimensional array will be a multi-dimensional array in which each sub-array does not contain the same number of elements.Regular array:array[0] = new array{0, 1, 2}array[1] = new array{3, 4, 5}array[2] = new array{6, 7, 8}array[3] = new array{9, 10, 11}This regular array is an array of size 4 in which each sub-array is of size 3.Irregular array:array[0] = new array{0, 1, 2}array[1] = new array{3, 4}array[2] = new array{5, 6, 7}array[3] = new array{8, 9, 10, 11}This irregular array is an array of size 4 in which the size of each sub-array is not the same.
Option 1) Use a temporary variable: int x = array[i]; array[i] = array[i+1]; array[i+1] = x; Option 2) Use bit operators: array[i] ^= array[i+1] ^= array[i];