int main()
{
    int i = 42;
    int const *foo, *bar;
    foo = &i;
    bar = &i;
    *foo = 1; // error
    *bar = 2; // error
}