How can I declare on top of my code a function that takes an array of ints as argument?
Thank you.
skiabox
0
Light Poster
Recommended Answers
Jump to PostWell, it'd look more like this:
#include <stdio.h> int minimum (int values[]); int mimimum (int values[]) { int minValue, i; minValue = values[0]; for (i = 1; i < 9; ++i) /* Index starts at zero, zo 10 - 1 = 9 indexes. */ if (values[i] < …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.