Question: Design and implement a structured program for manipulating two functions and pointer passing as follow: 1- The main function design: a- Store the employee salary
Design and implement a structured program for manipulating two functions and pointer passing as follow: 1- The main function design: a- Store the employee salary information (basicsal, allowance, and deduction), in one dimensional integer array. b- Store the empid and empname in one dimentional string array. cCall the function and pass the address of the first cell of the salary array. d- Show the empid, empname, and the netsal within the main function. 2- The function: a- Define a function prototype within the main function as "calcsal" with one address variable. b- Calculate the net salary as follow, (basicsal + allowance - deduction) and return result to the main function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
