if we initialize like
char *a = “Applied”; then it get written directly into executable which means it get into data segment not in stack or heap .
now the variable a is point to the location of the data segment. Data segment is generally read only so we cant update the value of “a”.
now here we are changing the value of a as *a++ ,which is not allowed. so depending upon on the compiler it will either show compile time error or just don’t print anything.
But according to standard gcc it should be error as it is trying to modifying the const string literal.