Search:

Type: Posts; User: grumpy

Search: Search took 0.09 seconds.

  1. Replies
    18
    Views
    2,422

    In simple terms, it means your code can do...

    In simple terms, it means your code can do anything. It might produce the results you intend. It might reformat your hard drive. Any results you can imagine are permitted because the C++...
  2. Replies
    18
    Views
    2,422

    Ah. You're asking about the infamous anomaly of...

    Ah. You're asking about the infamous anomaly of C.

    Firstly, it doesn't make sense to do "int *a = 1213" any more than it makes sense to do "char *c = ' '" (note the single quotes in the char...
  3. Replies
    18
    Views
    2,422

    Not true, doha. Firstly, printing out...

    Not true, doha.

    Firstly, printing out addresses using the %u format causes undefined behaviour.

    Second (even tying on the blindfolds and ignoring the undefined behaviour) your comments do not...
  4. Replies
    18
    Views
    2,422

    No, it is not. As whiteflags said, v is an...

    No, it is not. As whiteflags said, v is an array of 5 ints.

    Names of arrays can be treated as if they are pointers, in some contexts. That does not mean an array is a pointer. There are...
Results 1 to 4 of 4