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; 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
The code snippet provided is a C program with a function call to getData that takes two arg... View full answer
Get step-by-step solutions from verified subject matter experts
