expand icon
book C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith cover

C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith

النسخة 8الرقم المعياري الدولي: 978-1285867410
book C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith cover

C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith

النسخة 8الرقم المعياري الدولي: 978-1285867410
تمرين 1
Passing Arrays to Functions
In this exercise, you use what you have learned about passing arrays and array elements to functions to answer Questions.
Given the following function header (in which sal is one element of an array of doubles), write a function call that passes the last value in the array named salaries:
a.
double salaries[] = {45000, 23000, 35000};
void bonus(double sal)
التوضيح
موثّق
like image
like image

a. Function call for function header voi...

close menu
C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith
cross icon