Search:

Type: Posts; User: polymatrix

Search: Search took 0.00 seconds.

  1. This is weird to me...but its pretty cool. I was...

    This is weird to me...but its pretty cool. I was not familiar with the ** operator.
    So, ** essentially means: a pointer to a pointer? Valaris, your previous post makes more sense to me now. You...
  2. Thanks Macgyver. What should i use to flush the...

    Thanks Macgyver. What should i use to flush the standard input?
  3. valaris : thanks, but your suggestions didn't...

    valaris : thanks, but your suggestions didn't work for me.

    i don't know how to make this damn thing run using a pointer to a pointer, so i'm just gonna stick with returning the pointer at the end...
  4. yep, you are right. It crashes if i do int *ptr =...

    yep, you are right. It crashes if i do int *ptr = 0. , but it still works if i undo and recompile.

    maybe one day i'll understand. thanks for your help
  5. I compiled it on Dev-C++ 4.9.9.2 It runs...

    I compiled it on Dev-C++ 4.9.9.2
    It runs flawlessly


    and i copy the code...do a compile...run it again and




    flawlessly.... i don't know why?
  6. MacGyver: Is this what you meant by ...

    MacGyver: Is this what you meant by




    #include <stdio.h>
    #include <stdlib.h>


    int allocate_memory(int *integers, int *num1);
  7. I know this. However, recently i learned that...

    I know this.
    However, recently i learned that pointers can be past in to functions via parameters, and whatever happens to/in that address in the function is retained after the function ends.


    ...
  8. This runs..but why not this. Help me to understand, please

    Hi, here is my problem...I created a program that finds the average of a user defined amount of numbers. It is a homework exercise to learn about dynamic memory (aka The heap), and the functions...
Results 1 to 8 of 9