All the members of the structure can be accessed at once,where as in an union only one member can be used at a time. Another important difference is in the size allocated to a structure and an union. for eg: struct example { int integer; float floating_numbers; } the size allocated here is sizeof(int)+sizeof(float); where as in an union union example { int integer; float floating_numbers; } size allocated is the size of the highest member. so size is=sizeof(float);
Linked list consists of data nodes each pointing to next in the list .An array consist of contiguous chunk memory of predetermined size
A loop usually referred to the program flow control with possible repetition of executing the same codes, an array is an abstraction of fixed size container. 2 different concepts.
Arrays are basic structures wherein one or more elements exist "side by side" and are of the same "type". An "integer" array is an array whose elements are all of an integer type which has no fractional component. A "character" array is an array which contains nothing but character types. A "floating point" array contains elements that have both an integer and fractional portion. Simply put, they are arrays of particular types.
An array stores several values - for example, several numbers - using a single variable name. The programmer can access the individual values with a subscript, for example, myArray[0], myArray[5]. The subscript can also be a variable, for example, myArray[i], making it easy to write a loop that processes all the elements of an array, or some of them, one after another.
Array is collection of data items of same data type.Enum is collection of data items of different data type.
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.
There is no difference between central and union government
Vectors are thread safe but array lists are not. Hence array lists are faster than Vectors.
One has pin in front, one has land
typedef union U_t {/*...*/} U; U a[100]; /* an array of 100 unions */
Using and gate - pla is programmable while pal is fixed
A Magician has a cunning array of stunts ...........................................................................
List is not sync'd as a vector is.
A numericial array is an array with keys made up of only integers. An associative array is an array with keys made up of anything that is not an integer. In some languages, it is possible to mix integer keys and non-integer keys into a mixed array.
arrayarray_diff(array$array1,array$array2[,array$...] )
Array elements are all members of the same variable, indexed in a logical manner. variables are distinct objects which must be referred to distinctly. The main functional difference is that a program can iterate over an array without the programmer knowing the original size of the array or explicitly which member to access.