Skill/Topic: Variables and Pointers A) You use a structure to access parts of a data B) You use a structure to group together related data. C) You use a structure to declare an instance of data group Explanation: Structure is used to group all related data together
structure is to declare different data types at a time where as a arra y is a group of related data typesthe main difference b/w structure & union is in memory requirement.In structure s memory is sum of all the datatypes declared in it where as in union memory is the one which holds the highest bytes.struct{ int i;float g;};here memory req is 2+4 6union{int i;float g;};here memory req is only 4 bytes
the differnecebetween structure and union is ....the size of structure is sum of all data types containing the structure where as the size of union is the size of largest data type the union contains.....