Count The Spaces In A String | C Programming Example

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I think you don't need to call strlen. You are iterating twice over the string which is not optimized at all. But I guess you wanted to keep it simple for beginners (even though iterating until \0 is not very hard...)

fred-le-reveur
Автор

I had requested a video from you about coding 'flashing and/or coloured' text. But I worked hard till I got it. Perhaps you can still go ahead, other persons might want just that! Cheers!

savagepro
Автор

Nice video as Always! Can you make tutorials on Graphics programming in C using the graphics library, i have been looking for tutorials in that since i while, cant find any good one!

a.v
Автор

Could you make C language video about: split odd elements to left (or right) and even elements to right (or left) in 1 array.
I checked this in chatgpt exam, it uses a two-pointer approach to achieve this sorting.
But I want another easy way. Please help me.

baotang
Автор

What if the spaces are of different sizes, created by Space Bar and not TAB key. Moreover, will the array even accept unequal spacing?

savagepro
Автор

nice channel, please make series of leetcode C language

baotang
Автор

wouldn't it be easier if you looked at the \n. for the end of string instead of using strlen

TheRecocebo
Автор

Or ...

int count_char_instances( char *string, char c );

where c is any character the caller wants to count.

PlayerClarinet
visit shbcf.ru