c Lab Report
c Lab Report
(COMPUTER SCIENCE)
GRADE: XI (DF-1)
KATHMANDU, NEPAL
2024
Table of Contents
1. Acknowledgement I
2. Objectives II
3.1 C Programming
4. Work Done
5. Conclusion ……
1. Acknowledgement.
I would like to express my sincere gratitude to Achyut Shah Thakuri for his invaluable
guidance and support throughout this C programming lab. His insightful explanations
and timely feedback were instrumental in my understanding of the core concepts of C
programming, such as variables, data types, operators, control flow statements, and
functions. His patience and encouragement motivated me to persevere through
challenges and strive for excellence.
Through this C programming lab, I delved into the fundamental input and output functions,
scanf and printf. I gained practical experience in using these functions to effectively
interact with the user and display formatted output. I learned how to format input and
output, handle different data types, and control the precision of numerical values. By
working on various exercises, I developed a strong understanding of the syntax and usage
of these functions.
I also gained insights into error handling techniques and best practices for input and output
operations. For instance, I learned how to validate user input to ensure it is within expected
ranges and formats. Additionally, I explored techniques to handle potential errors, such as
invalid input or file I/O failures. By implementing these error handling strategies, I can
write more robust and user-friendly C programs.