+ 4

Array of structure.?

clear explaination...

13th Sep 2018, 8:24 AM
Sowmiya
Sowmiya - avatar
3 Respuestas
+ 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
13th Sep 2018, 9:24 AM
Mayur Shedage
Mayur Shedage - avatar
+ 6
In C/C++, for instance, struct MyStruct { //... }; An array of structures of size 10 would be MyStruct obj[10];
13th Sep 2018, 11:43 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
thank you...
13th Sep 2018, 9:48 AM
Sowmiya
Sowmiya - avatar