structures

closed account (NbMiz8AR)
what does structures do in programming and how does it helps us

struct database {
int id_number;
int age;
float salary;
};

int main()
{
database employee; //There is now an employee variable that has modifiable
// variables inside it.
employee.age = 22;
employee.id_number = 1;
employee.salary = 12000.21;
}
Topic archived. No new replies allowed.