Search:

Type: Posts; User: laserlight

Search: Search took 0.16 seconds.

  1. Replies
    6
    Views
    1,265

    Oh, then that is because count in main is a null...

    Oh, then that is because count in main is a null pointer.
  2. Replies
    6
    Views
    1,265

    With the parentheses, you are incrementing the...

    With the parentheses, you are incrementing the result of the dereferencing, not the pointer. Personally, I might write:

    ++*count;


    Err... they look identical save for the header inclusion. Are...
  3. Replies
    6
    Views
    1,265

    Look carefully at: *count++; This...

    Look carefully at:

    *count++;
    This dereferences count, and increments count. Rather, you want to increment the result of dereferencing count.

    Remember to delete what you new. In fact, you do...
Results 1 to 3 of 3