main()
{
char *c="abhishek";
int i;
c[2]=90;
for(i=0;i<12;i++)
{
printf("%c",c[0])
}
}
Here the output is abZishek
. But this should result in a bus error because this is a string literal and we can not change its value. Why does the value of c
change?