i am leaning CPP(c++) programming language, now i am learning structures in CPP. I found one complex(for me) structure, can anyone explains this structure.
struct person {
string name;
int salary;
int empid;
} employee[] = { { "abc", 1, 2 }, { "klm", 3, 4 } }
- What is this structure called (if there is any specific name. like array of structures)?
- How can i access data members inside it?
- How can i print the values(abc,klm......) directly(with "employee" if possible) and using struct variable?