Declaration for a student structure in C++.

Q11. Write declaration for a structure that holds information of a student like roll no, name, class, marks and grade.

Ans.

struct stud

{

int roll_no;

char name[20];

int class;

float marks;

char grade;

};

Leave a Reply

Your email address will not be published. Required fields are marked *

116 Views
%d bloggers like this: