Frage im Vorstellungsgespräch bei AllGo Systems

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

Antwort im Vorstellungsgespräch

Anonym

2. Dez. 2017

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

2