How to remove all occurrences of a given character from string in C?

后端 未结 7 607
有刺的猬
有刺的猬 2020-11-30 11:24

I\'m attempting to remove a character from a string in C. The problem I am having with my code is that it removes the first instance of the character from the string but als

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 11:47

    C defines a string as "a contiguous sequence of characters terminated by and including the first null character"

提交回复
热议问题