Question
How can I complete this without using the int main() function?Because we are using the menu system, the function for this problem cannot be called
How can I complete this without using the int main() function?Because we are using the menu system, the function for this problem cannot be called "main" as stated in the book.
here is my code:
#include
void show(double rates[], int size) {
int i;
for (i = 0; i printf("%lf ", rates[i]); } printf(" "); } int main() { double rates[9] = { 6.5,8.2,8.5,8.3,8.6,9.4,9.6,9.8,10.0 }; show(rates, 9); getchar(); }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started