Structure | Sololearn: Learn to code for FREE!



can somebody explain me what is structure? in Simple way...I m struggling with that

10/18/2018 4:35:04 AM

Mohammed Nehal Ahmed

1 Answer

New Answer


Strcutures are a collection of variables which differ in their data types. An array allows you to create a collection of variables or objects of the same type. But consider a situation where you want to store the name and roll number of a student. An array would not be sufficient as it can only hold any one of the above two quantities. A structure would allow you to do just that.