0% found this document useful (0 votes)
90 views

c Lab Report

Uploaded by

sushantabhatta6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views

c Lab Report

Uploaded by

sushantabhatta6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

TRINITY INTERNATIONAL SS & COLLEGE

Dillibazar Height, Kathmandu, Nepal

LAB WORK # 1: C Programming: Input and Output functions

(COMPUTER SCIENCE)

SUBMITTED BY: SUBMITTED TO:

NAME: Sushanta Bhatta

GRADE: XI (DF-1)

DATE : 2081/08/03 ACHYUT SHAH THAKURI

Faculty of Computer Science

KATHMANDU, NEPAL
2024
Table of Contents

S. No. Page No.

1. Acknowledgement I

2. Objectives II

3. Theoretical Background (1-….)

3.1 C Programming

3.1.1 Input and output Functions

4. Work Done

4.1 Work Done on Input and Output functions ……

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.

I am particularly grateful for his assistance in troubleshooting errors and providing


alternative approaches to problem-solving. I got to learn a lot from his expertise in C
programming, especially in the area of input and output operations. By sharing his
knowledge and experience, he helped me to develop a deeper understanding of the
underlying principles and best practices.
2. Objective

The main objectives of the lab work are as follows:

1. To understand the anatomy of a C program.

2. To design a program with algorithms and flowchart.

3. To understand preprocessor directive and header files.

4. To get familiar with different data types.

5. To write a first C program.

6. To understand the compilation process.

7. To apply arithmetic and logical operators.


3. Theoretical Background
4. Work Done
5. Conclusion

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.

You might also like