AllGo Systems interview question

char *ptr = "ALLGO"; *++ptr = 'l'; printf("%s", ptr); Predict Output?

Interview Answer

Anonymous

Dec 2, 2017

I said, this would be "Segmentation fault, (core dumped)", but he neglected. And I explained, then he accepted and skipped this question.

2