Search:

Type: Posts; User: spiri

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    124

    pointers exercise

    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...
  2. Replies
    3
    Views
    275

    Thanks, now it works. I didn't explain much more...

    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.
  3. Replies
    3
    Views
    275

    pointers swap function

    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...
  4. Replies
    4
    Views
    408

    OMG, thanks, that's it! I forgot to notice the...

    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.
  5. Replies
    4
    Views
    408

    I'm still getting "output isn't correct"...

    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...
  6. Replies
    4
    Views
    408

    beginner multiple function

    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...
Results 1 to 6 of 6