Structure | Sololearn: Learn to code for FREE!

+1

Structure

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

+4

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. https://code.sololearn.com/clZU3INKhYe3/?ref=app