Code With Me: Reversing a String in C with a Stack Using Test-Driven Development in CLion
In this video, I develop the code to reverse a string in C using a stack. If you're an intermediate C programmer, this tutorial will help you refine your understanding of string manipulation and pushing and popping things from a stack. I use test-driven development (TDD) to ensure the function works correctly while debugging common C string issues. 🔹 What You’ll Learn: ✅ How to reverse a string using a stack in C ✅ Debugging C strings efficiently ✅ Writing and testing your function in CLion ✅ Applying TDD for better reliability 🔔 Don’t forget to like, comment, and subscribe for more programming tips! #CProgramming #DebuggingCStrings #TestDrivenDevelopment #CLion #CodingTutorial Other Videos about Stacks: The Stack Data Structure: https://youtu.be/VqnGeeuLab8 Storing Stacks in Arrays: https://youtu.be/R7fDTu-RX9I Storing Stacks in Arrays in C: https://www.youtube.com/watch?v=9MtrX_ql7Wg Using Stacks to Check Well-Matched (Balanced) Parentheses: https://youtu.be/eOYruZ-Xbd8 TIMESTAMPS 0:00 Introduction 0:55 Setting up the Project 8:00 Reversing a Trivial String 13:00 Reversing a Longer String 21:37 Oops - a bug!!!!! 27:00 Verifying That it Works with Odd Length Strings ABOUT MY CHANNEL My channel is about good software engineering practices. We cover introductions to programming in C and Java. But I also have lots of software and computer engineering topics like PIC programming, advanced programming techniques, and things that distinguish good code from code that works. Check out my channel here: https://www.youtube.com/@wizardcraftcode Don’t forget to subscribe! CHECK OUT MY OTHER VIDEOS: Watch Me Code Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9AgPOmhsuFRVpGfifvvGtA1p C Programming Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9Ag0CZdGTUm3FWhBDX28B0Dj Intro to Java Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9Ajo6LH_-g7dXjZemaQ5QXnV Software Engineering Topics Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9AgMHq42vUXHkXEws3JWdnDb
Download
0 formatsNo download links available.