<p><pre><code>    int main() {
        int *p = (int*)malloc(sizeof(int));
        int *q = (int*)realloc(p, sizeof(int));
        *p = 1;
        *q = 2;
        if (p == q)
            printf(&quot;%d %d\n&quot;, *p, *q);
    }
    $ clang -O realloc.c ; .&#x2F;a.out
    1 2
</code></pre>
That&#x27;s about as eyebrow-raising as you can get!