C++/Arrays and Structures/Important Points/Basic to Master

Arrays and Structures:-

β€’Structure is a user-defined which has the combination of data items with different data types.

β€’Structure is declared using the keyword ‘struct’.

β€’Structure elements are referenced using its object name followed by dot(.)
operator and then the member name

β€’A structure without a name/tag is called anonymous structure.

β€’The structure elements can be initialized either by using separate assignment statement or at the time of declaration by surrounding its values with braces.

β€’A structure object can also be assigned
to another structure object only if both
the objects are of same structure type.

β€’The structure declared within another
structure is called a nested structure

β€’A structure can contain array as its
member element.

β€’Array of structure variable can also be
“created”.

Leave a comment

Design a site like this with WordPress.com
Get started