Hello everyone! 👋
I’m Adhyan Jain, a B.Tech. CSE student at VIT Vellore, continuing my coding journey with another exciting week in C programming. This week, I delved deeper into preprocessing, file handling, and tackled various practice problems to strengthen my understanding. Here’s a detailed recap of my progress!
Day 15: Preprocessing in C
Preprocessing directives took center stage on Day 15. I explored macros, conditional compilation, and their applications in making code more efficient and maintainable.
Practice Highlights:
- Defined macros to calculate the area of a circle and implemented a program using
#define
. - Demonstrated how macros can be redefined after using
#undef
. - Created a function-like macro for squaring numbers and tested it with integers and floating-point values.
- Used
#ifdef
to include debugging information only when theDEBUG
macro is defined.
Takeaway: Preprocessing directives are powerful tools for simplifying and optimizing code.
Day 16: File Handling - Part I
File handling basics were the focus of Day 16, introducing me to efficient data management techniques.
Learning Highlights:
- Opened, read, wrote, and closed files in text and binary formats.
- Worked on creating and managing files programmatically.
Practice Highlights:
- Wrote a program to create and write text into a file.
- Read data from a file and displayed it.
- Worked with binary files to store and retrieve text.
Insight: File handling unlocks endless possibilities for data storage and manipulation.
Day 17: Revisiting the Basics
Day 17 was a refresher day to strengthen the foundation of C programming.
Activities:
- Reviewed key concepts: variables, loops, arrays, and functions.
- Solved 10 practice questions to reinforce fundamentals.
Reflection: Revisiting basics always provides new perspectives and helps bridge any gaps in understanding.
Day 18–21: Practice Marathon
The last four days were all about solving problems and mastering various concepts through consistent practice.
- Day 18: Solved basic to intermediate problems on arrays, loops, and conditional statements.
- Day 19: Focused on questions involving arrays, functions, and strings.
- Day 20: Tackled intermediate-level challenges with strings, functions, and array-matrix operations.
- Day 21: Took on advanced-level questions in strings, functions, and arrays with matrices.
Key Takeaways: Regular practice hones problem-solving skills and deepens understanding of concepts.
Reflection on the Week
This week was all about exploring preprocessing, diving into file handling, and reinforcing concepts through consistent practice. Each day presented new challenges that helped me grow as a programmer.
What’s Next?
In the upcoming week, I’ll continue building on my knowledge by diving deeper into advanced file handling and exploring new challenges in C programming.
How’s your C programming journey going? Share your experiences, tips, or challenges in the comments—I’d love to hear from you!
Follow My Journey:
📌 GitHub: Adhyan Jain's C-CodeVault
📌 LinkedIn: Adhyan Jain
📌 Dev.to: Adhyan’s Blog
Top comments (0)