Question: Consider the following code. Assume all preprocessor directives have been declared. int main( ) { } int age; double salary; // function prototype getData(age,

 Consider the following code. Assume all preprocessor directives have been declared. int main() { } int age;  

Consider the following code. Assume all preprocessor directives have been declared. int main( ) { } int age; double salary; // function prototype getData(age, salary); cout < < "New salary = " < < salary < < endl; return 0; Assume that the getData function was coded later in the source code file. Write the function prototype for the getData function that would set the values for both age and salary on the code fragment above.

Step by Step Solution

3.57 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The code snippet provided is a C program with a function call to getData that takes two arg... View full answer

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 Programming Questions!