02.05.2013 Views

Description - Mks.com

Description - Mks.com

Description - Mks.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A break statement has the form:<br />

break [expr] ;<br />

where expr is the number of levels to break out of. If no expression is specified, break exits the<br />

current loop (expr is 1).<br />

Exit Program<br />

The exit statement has the form:<br />

exit expression ;<br />

This terminates cc with the integer-valued expression as its exit value.<br />

Dump Debugging Information<br />

The dump statement is a debugging aid.<br />

dump ;<br />

outputs the names and values of all variables currently defined to the standard output.<br />

Print Expression<br />

There are several printing statement forms.<br />

print expression { , expression } ;<br />

prints the values of the given expressions on the standard output. If more then one expression is<br />

given, they are printed with a single blank separating each item. print does not put a newline<br />

character at the end of the output.<br />

println expression { , expression } ;<br />

is similar to the previous format, but does print a newline at the end of the list of expressions.<br />

print expression { , expression } -> filename ;<br />

println expression { , expression } -> filename ;<br />

are similar to the other printing statements, but they print to the given file instead of to the standard<br />

output. The filename is given as a string-valued expression. If the file does not exist, it is created; if<br />

it already exists, output is appended to the end of the current contents.<br />

Close File<br />

312 of 457

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!