for me one of the best channels on u Tube in terms of C programming! Thanks a lot!
@PortfolioCourses Жыл бұрын
You're very welcome, I'm glad you're enjoying the channel! :-D
@octophrator1248 Жыл бұрын
Alternatively, count_digits could also be like this, if you don't want to use recursion: int count_digits(int number) { int p; for (p = 0; pow(10, p)
@PortfolioCourses Жыл бұрын
Thank you for sharing this! :-)
@karimbousmaha40384 ай бұрын
Plz share a Playlist about making some games with graphics in c++
@bresent Жыл бұрын
Can you make a playlist for graphics ? Like SDL or Raylib using C
@PortfolioCourses Жыл бұрын
Raylib is something I've had a few people request, it's something I've looked into a bit now. :-)
@MadpolygonDEV Жыл бұрын
I think its cleaner to do this as recursion takes a while to read for me int count=0; While (number) { count++; number/=10; } return count;
@PortfolioCourses Жыл бұрын
I think so too. :-) Most of the time it's better to do things "iteratively" with a loop, rather than recursively. I make videos solving recursion problems because lots of teachers assign these to students to help them understand recursion, and the goal with the video is to help out the students that are struggling or stuck.
@MadpolygonDEV Жыл бұрын
@@PortfolioCourses i see, your videos are amazing, thanks for all the content!!
@PortfolioCourses Жыл бұрын
You're welcome! :-)
@jcamargo2005 Жыл бұрын
While this is a great example on C, it is good to know that you can get this done with a single instruction in x86 architecture (LZCNT)