#include <stdio.h> int main(void) { const int first = 5; int second = 8; int *p = (int *) &first; *p = 6; second = first; printf("second %d first %d\n", second, first); printf("content of p %d\n", *p); return 0; }
C++:5 5 6
C:6 6 6