+ 4
Array of structure.?
clear explaination...
3 Answers
+ 4
A structure is a composite datatype with a collection of variables. These variables can have different data types and collectively form a structure of a composite datatype. An array of structures is a sequential collection of structures. With structures, you can store mixed record types and with an array supporting this, you can have a list of mixed record types. The following example shows a structure called student that takes the roll number and name of a student as an input. It then stores each record in an array st, which stores three elements. Each element will hold a mixed record.
You can refer below link for more information:
https://study.com/academy/lesson/arrays-of-structures-in-c-programming.html
+ 6
In C/C++, for instance,
struct MyStruct {
//...
};
An array of structures of size 10 would be
MyStruct obj[10];
+ 2
thank you...