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++...
Type: Posts; User: grumpy
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++...
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...
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...
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...