#include <stdio.h> int main() { int x; int y; int * const ptr = &x; *ptr = 7; /* allowed: *ptr is not const */ // ptr = &y; /* error: ptr is const; cannot assign new address */ return 0; }