seriously, you are the best. It's like you know what doubts I have and you prove stuff. ... plus your oration is grand. I can't stand all these Indian accents floating around on these subjects. Are they all programmers? I thought they were all doctors.
Your videos so helpful for me. Could you make video on how to remove consecutive white spaces (i,e replace a multiple white spaces with single space in a string ) ?
Please keep uploading more problem solving in c I’m really enjoying your Chanel ❤
I'm glad you're enjoying the channel! :-)
@@PortfolioCourses do you have a Chanel about embedded systems and microcontroller?
each time I visualize the video, I move forward "inches" in understanding the c programming. Thank you for making it such way.
You're welcome Naboulsi, I'm glad to hear you're moving forward in your understanding! :-)
seriously, you are the best. It's like you know what doubts I have and you prove stuff. ... plus your oration is grand. I can't stand all these Indian accents floating around on these subjects. Are they all programmers? I thought they were all doctors.
Ty, really useful
Thank you so much
Hi Kevin, NIce!
Here is my version, with pointers:
#include
#include
char *remove_spaces(char *string);
int main(void)
{
char string[] = " \tA string with\t\twhitespaces in
it
";
printf("Before: '%s'", string);
printf("
After: '%s'
", remove_spaces(string));
return 0;
}
char *remove_spaces(char *string)
{
char *string_base = string, *string_reader = string;
while (*string_reader != '\0')
{
if (!isspace(*string_reader))
*string++ = *string_reader;
++string_reader;
}
*string = '\0';
return string_base;
}
Thanks for sharing Marc! :-)
Your videos so helpful for me. Could you make video on how to remove consecutive white spaces (i,e replace a multiple white spaces with single space in a string ) ?
Yes I can, that's a great idea for a video, I just posted it here: th-cam.com/video/liwJ3Gr-6z0/w-d-xo.html. :-)
@@PortfolioCourses Thank you for posting the video so quickly. Asusual code is simple and clean.
@@decibi2684 You're welcome! 🙂
Please can you do time in word program using string pointers to characters it’s in hacker rank website 😢
Is it this problem? www.geeksforgeeks.org/convert-given-time-words/ Maybe I can cover it one day. :-)
@@PortfolioCourses yes but I need the function return string not void .thanks
neat ;-)
I'm glad you liked it! :-)