Replace a character in a string with another character | C Programming Example

Replace a character in a string with another character | C Programming Example

Portfolio Courses

3 года назад

29,120 Просмотров

An example of a function to replace all occurrences of a character in a string with another character using C. Source code: https://github.com/portfoliocourses/c-example-code/blob/main/replace_char.c. Check out https://www.portfoliocourses.com to build a portfolio that will impress employers!
Ссылки и html тэги не поддерживаются


Комментарии:

Firas Faham فراس فحام
Firas Faham فراس فحام - 16.02.2023 06:25

Kevin, your videos are Gold - many thanks to you.

Ответить
Buddha's
Buddha's - 08.02.2023 06:57

Keep teaching the world......

Ответить
Basu Nidagundi
Basu Nidagundi - 02.12.2022 08:42

How to replace attribute prefix value for ex: id="tit3086", id="ch863", id="bi4505" In xml file. How To replace "tit " with "tm", "ch"="coch" and "bit"="bib " only I we need replace prefix. How to solve this

Ответить
ArtA GhorbAni
ArtA GhorbAni - 25.10.2022 11:47

thank you for this video..how about we change array to string..do you have a video for that??

Ответить
vino
vino - 05.07.2022 04:12

Hello sir, i have a question. On the void parameter you use *string, but for replace and new not using pointer ?.

Thanks sir

Ответить
xaestheticz
xaestheticz - 04.07.2022 13:26

Thanks for teaching this method, i also have another question about replacing the first and last letter of a string, how can you do that ?

Ответить
Warsoft3
Warsoft3 - 08.06.2022 13:42

Is the function working if we send a char *str ?

Ответить
nuno aguiar
nuno aguiar - 31.03.2022 16:28

can i use this method to delete spaces in a string?

Ответить
Tetiana Camomile
Tetiana Camomile - 26.01.2022 16:50

How to change first (second) change in string? Thanks

Ответить
Odious Fox
Odious Fox - 18.01.2022 20:16

Great video but when i hear you say char as car I died.

Ответить
Omar Harzallah
Omar Harzallah - 06.11.2021 23:13

Thanks for you and translate Arabic language

Ответить