@lorem1213 ((char*)astr)[0] = 'X';: This line casts the constant pointer astr to a non-constant character pointer using a type cast (char*). This is a dangerous practice as it bypasses the intended const-ness of the variable and can lead to undefined behavior and potential program crashes. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.