What is a structure in c? Which of the below statements are not true about a struct in C?
structure is a data structure
structure can hold data of heterogeneous data types.
If I want to maintain details of an emp with eno, ename, esal. then it is better to use Array compared to structures.
structure size may not be same as the sum of sizes of all its elements.
If I want to maintain details of an emp with eno, ename, esal. then it is better to use structures compared to array. because emp will have data of different types, so it is not possible to store different data types value in an array. for that we have to use a structure.
Back To Top