#include #include int main(int argc, char *argv[]) { int i = 1; int * ip = &i; int * const ipc = &i; int const * icp = &i; int const * const icpc = &i; icp = ip; // Uncomment to attempt assignment to read-only values. //ipc = ip; //*icp = 2; //icpc = ip; printf("i = %i; ip = %p; ipc = %p; icp = %p; icpc = %p\n", i, ip, ipc, icp, icpc); exit(EXIT_SUCCESS); } // vim:set cin et sw=4 ts=4 tw=80: