What is structure? Declare a structure in C++ with name ,roll number and total marks as component.
Answers
Answered by
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
Social Sciences,
1 month ago
Psychology,
1 month ago
Accountancy,
2 months ago
English,
2 months ago
Computer Science,
9 months ago
English,
9 months ago
Math,
9 months ago