

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Intro Prog&Prob Solving; Subject: Engineering Computer Science; University: University of California - Davis; Term: Unknown 2002;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Version of April 5, 2002 8:26 am Page 1 of 2
Due Date: Friday, April 12, 2002 Points : 100
The “anything else” entry means that any non-printing character other than the ones named in the table is to be printed as a sequence of three octal digits preceded by a backslash. When the escape sequence for a newline is printed, the program is to skip to the next line.
character print as character print as
newline \n backslash \
horizontal tab \t vertical tab \v
backspace \b carriage return \r
form feed \f bell \a
NUL \0 anything else \ooo
Version of April 5, 2002 8:26 am Page 2 of 2
Unfortunately, the program as saved in vis.c will not even compile, let alone run. And the programmer thought- lessly left off all the comments. Hence, your mission: comment the program, and fix it so it works as described above! You are to turn in a corrected source program, with comments describing the changes you made to get it to work.