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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!