2079 8

C Programming20795 marksArray of structure

Create a structure 'Employee' having Name, Address, Salary, and Age as member functions. Display the name of the employee having age between 40 and 50 and are living in Kathmandu.

Create a structure 'Employee' having Name, Address, Salary, and Age as member functions. Display the name of the employee having age between 40 and 50 and are living in Kathmandu. [5]

Concept Description ------ struct Employee Defines the structure with 4 members emp[100] Array of structure to store multiple employees strcmp() Compares Address string with "Kathmandu" (returns 0 if equal) Age = 40 && Age <= 50 Checks if age falls in the required range Both conditions joined by ...

Up nextList any one advantage and disadvantage of the pointer. How do you pass pointers as functi