dear IndiraP,
i agree with u what u are saying about constant variable, but i get confused when i access constant variable through a pointer, it not only allow me to access the value but through this i can also modify the value of constant variable.

const int a=10;
a=11; // generates error
int *ptr;
ptr =&a;
*ptr =11;
printf("\n Now value of constant variable a is : %d",a);
return 0;

plz tell me how variable a become constant.