Question: Design and implement a structured program for manipulating functions and pointer passing as follow: 1. Use one dimensional integer array to store the salary information
Design and implement a structured program for manipulating functions and pointer passing as follow: 1. Use one dimensional integer array to store the salary information for one employee (basic-sal, allowance, and deduction, and the netsal), the storing activity will be implemented within the main function. 2- Store the empid and empname in two string variables. 3- Define a function prototype with name "calcsal" receiving the address of the array's first cell. 4- Design the calcsal function to calculate the net salary and store it in the same array. 5- Show the empid, ensaname, and the netsal within the main function. 6- Prepare test data and implement it (run)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
