![]() I changed your code and highlighted them it worked for me i hope it will help you. Second because your variable is structure and you want loop through it your best choice is to use array. Printf("****************INPUT EMPLOYEE DETAILS******************\n") įor(i=0 iid, ptr->name, ptr->age, ptr->salary) įirst of all you need to save each of your employees in variable so you can refer them later. Calculate the gross salary of all the employees and display it along with all other details in a tabular form, using pointer to structure. ![]() The details of the employees are pre-declared in the program and we will one by one print all the values. The details of the employee that are in the structure are name, age, phone number, salary, and our program will print these details. WAP to enter id, name, age and basic salary of n number of employees. Our task is to create a C program to program to print employee details using structure.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |