1). Structuer is a group of diffrent data type & set of diff. data type element can manupulet by using structuer .It Size is Addition of all Data type size e.g(int,float,char*2+4+1) =7 byte size of structure
2.) Array is Collection of Same data Type Element
it is intege Array , Char Array , ponter Array,Objeact Array etc,
Array is collection of data items of same data type.Enum is collection of data items of different data type.
The main differences between an array and a structure are: An Array is a collection of similar data items.An array is derived data type.It behave like a built in data type. An array can be increased or decreased. A structure is a collection of dissimilar data items.It is a user defined data types.It must be declared and defined.A structure element can be added if necessary.
Both are aggregates of elements of the same type. The main difference is that an array allocates elements contiguously thus there is no need to maintain links between the elements; each can be addressed by its offset from the start of the array. A structure, however, allocates elements non-contiguously, and must maintain links (pointers or references) within the elements in order to navigate from one element to the next.
Linked list consists of data nodes each pointing to next in the list .An array consist of contiguous chunk memory of predetermined size
Array
An array is a made up of elements of the same type e.g. strings or integers. A structure on the other hand can be made up of elements of different types.
An array is a collection of related data elements of same type.Structure can have elements of different types.An array is a derived data type.A structure is a programmer-defined data type.A struct can contain multiple data types, whereas an array can not.
A queue can use a dynamic array, or a linked list, but if using static memory, the queue becomes a circular queue because the underlaying data structure is a static circular array. This means the ends of the array are attached.
Numeric array has numbers(+integers) that represent the values Associative array has strings that represent the values
When we declare an array of characters it has to be terminated by the NULL , but termination by NULL in case of string is automatic.
Vectors are thread safe but array lists are not. Hence array lists are faster than Vectors.
The minimum absolute difference between any two elements in a given array is the smallest positive number that can be obtained by subtracting one element from another in the array.
Array is collection of data items of same data type.Enum is collection of data items of different data type.
The main differences between an array and a structure are: An Array is a collection of similar data items.An array is derived data type.It behave like a built in data type. An array can be increased or decreased. A structure is a collection of dissimilar data items.It is a user defined data types.It must be declared and defined.A structure element can be added if necessary.
A Magician has a cunning array of stunts ...........................................................................
Using and gate - pla is programmable while pal is fixed
Both are aggregates of elements of the same type. The main difference is that an array allocates elements contiguously thus there is no need to maintain links between the elements; each can be addressed by its offset from the start of the array. A structure, however, allocates elements non-contiguously, and must maintain links (pointers or references) within the elements in order to navigate from one element to the next.