Search:

Type: Posts; User: memcpy

Search: Search took 0.02 seconds.

  1. Use a little logic and think about what you...

    Use a little logic and think about what you wrote. What good does freeing the memory do before you can actually use it? Free everything at the end, where you freed the main array.

    Did you not...
  2. Read this > FAQ > Casting malloc -...

    Read this > FAQ > Casting malloc - Cprogramming.com

    Take MK's advice about free()ing your array. When you allocate, "arr" is an array of pointers. Assuming you allocate a "3x3" array of 8-byte...
  3. > Or you could make the stack size larger, if...

    > Or you could make the stack size larger, if necessary.

    What do you think is easier:

    Using malloc() and writing code that follows convention.

    Or:

    Finding a way to change the stack...
  4. You're wasting 7200 bytes of local/stack memory....

    You're wasting 7200 bytes of local/stack memory. A 30x30 array of 8 byte types should be dynamically allocated or static.

    If you want to successfully use rand(), you have to
    srand(time(NULL));...
Results 1 to 4 of 4