Have to make a program that given an array of 7 integer from input, applies a function like this one:
void firstlasteven(int arr[], int dim, int* firstocc, int* lastocc);
that returns the position...
Type: Posts; User: spiri
Have to make a program that given an array of 7 integer from input, applies a function like this one:
void firstlasteven(int arr[], int dim, int* firstocc, int* lastocc);
that returns the position...
Thanks, now it works. I didn't explain much more because it didn't have much more in it, except for test input|output. I'll get back to the theory some more.
Need to write a function with 2 floats that make the first argument "a - b" and the second one "b - a", then print the 2 with .2 precision.
Compiles but output is not correct.
Can anyone tell me...
OMG, thanks, that's it! I forgot to notice the commas dividing the numbers in the output. Sorry for making you waste your time on something like this, I hope to be able to give back sooner or later.
I'm still getting "output isn't correct" (practicing on an autoevaluator platform) after trying both suggestions.
I really thought the mistake was inthe printf command.
Maybe I'll just skip this...
OT: Being a total beginner to programming but having lots of free time I recently started practicing. Having a rough time on functions. Thanks to everyone in advance.
THE PROBLEM:
Given 2...