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

Lab2 Answer

The document provides instructions for input/output functions lab exercises involving compiling and running C programs with errors. Students are asked to perform tasks like deleting lines of code, compiling with and without errors, and noting error messages and meanings. They are also instructed to save their work and answers in specified folders on the university hard drive and print a copy for the lab instructor.

Uploaded by

mohammad
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
248 views

Lab2 Answer

The document provides instructions for input/output functions lab exercises involving compiling and running C programs with errors. Students are asked to perform tasks like deleting lines of code, compiling with and without errors, and noting error messages and meanings. They are also instructed to save their work and answers in specified folders on the university hard drive and print a copy for the lab instructor.

Uploaded by

mohammad
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

1 Input / Output Functions

Name:
Student ID:
Section:

1. Write the keyboard commands to do the following:


• Save:
• Run:
• Compile Only:
• Execute Compiled Program:

3. Delete line 5. Compile and run.


• Error message:
• Meaning:

5. Delete line 4. Compile and run.


• Error message:
• Meaning:

9. What is the different between the questions 7 and 8 ?

11. Remove the operator from line 5. Compile and run. What
does \n do?

Note: Store these answers with hello.c and hello2.c in your university's
hard drive.
• \CPCS202\Lab\Lab1\Lab1_answer.doc
• \CPCS202\Lab\Lab1\hello.c
• \CPCS202\Lab\Lab1\hello2.c
Also, print a copy of this answer sheet to the lab instructor after you sign
on the paper.

Signatur
e
CPCS202 - The Lab Note Lab 2 -
Answer

You might also like