#include <stdio.h>
int main(void) {
int x1 = 1, x2 = 2, x3 = 3, x4 = 4;
int* p1;
p1 = &x1;
*p1 = 10;
const int* p2;
p2 = &x2;
//*p2 = 20;
int* const p3 = &x3;
//p3 = &x1;
*p3 = 30;
const int* const p4 = &x4;
//p4 = &x2;
//*p4 = 40;
printf("%d %d %d %d", *p1
, *p2
, *p3
, *p4
); }
//http://pt.stackoverflow.com/q/190203/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CiAgICBpbnQgeDEgPSAxLCB4MiA9IDIsIHgzID0gMywgeDQgPSA0OwogICAgaW50KiBwMTsKICAgIHAxID0gJngxOwogICAgKnAxID0gMTA7CiAgICBjb25zdCBpbnQqIHAyOwogICAgcDIgPSAmeDI7CiAgICAvLypwMiA9IDIwOwogICAgaW50KiBjb25zdCBwMyA9ICZ4MzsKICAgIC8vcDMgPSAmeDE7CiAgICAqcDMgPSAzMDsKICAgIGNvbnN0IGludCogY29uc3QgcDQgPSAmeDQ7CiAgICAvL3A0ID0gJngyOwogICAgLy8qcDQgPSA0MDsKICAgIHByaW50ZigiJWQgJWQgJWQgJWQiLCAqcDEsICpwMiwgKnAzLCAqcDQpOwp9CgovL2h0dHA6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzE5MDIwMy8xMDE=