Question about C string

Hello, i got a question about C string.

Is it possible to replace one char with string without using dynamic allocation?

Example is, to replace "a" with "sd"


"I am aelien"


input:I am aelien
output:I sdm sdelien


just random string, to explane what i want. Thanks.
Topic archived. No new replies allowed.