Computer Science, asked by payal2252005, 2 months ago

What is structure? Declare a structure in C++ with name ,roll number and total marks as component.​

Answers

Answered by kumar81rinku
0

Answer:

A structure is a collection of variables referenced under one name. A structure is declared using the keyword struct as in following syntax: struct { [public:] | [private:] | [protected:] /* data members’ declarations */ /* member functios’ declarations */ }; Example: struct Student { char Name[30]; int Rollno; float Total_Marks; };Read more on Sarthaks.com - https://www.sarthaks.com/434990/what-is-structure-declare-structure-in-with-name-roll-number-and-total-marks-as-components

Similar questions