Search:

Type: Posts; User: grumpy

Search: Search took 0.04 seconds.

  1. Replies
    11
    Views
    1,402

    By definition, if a program works as intended...

    By definition, if a program works as intended with pointers, they are not being misused. But, yes, the program could have been done without using pointer syntax. Given a choice of approaches...
  2. Replies
    11
    Views
    1,402

    That sort of rubbish (note that I didn't use an...

    That sort of rubbish (note that I didn't use an expletive, even though I consider it warranted) and lazy attitude is why so many memory leaks occur in production code. It's not a problem, until...
  3. Replies
    11
    Views
    1,402

    Still a memory leak. One characteristic of...

    Still a memory leak.

    One characteristic of your code is that it is working with arrays, but obscuring that behind pointer syntax. The code can probably made more readable by using array syntax....
  4. Replies
    11
    Views
    1,402

    1) To be blunt, it doesn't work because you...

    1) To be blunt, it doesn't work because you coded it incorrectly, without understanding the difference between pointers and strings. The selectLower() function returns a pointer to the...
Results 1 to 4 of 4