In C there is a function called printf that sends output to the terminal.
For example, the statement:
printf("Hi there!\n");
prints the message ``Hi there!''-without the quotes--on the terminal.
Notice that the message string is contained in double quotes. You might be
wondering what the characters ``\
n'' are doing in the message string
above.
Click here for the answer.
And do you remember why there is a semicolon at the end of the printf
statement?
Click here for the answer.
Eric N. Eide
Hamlet Project
Department of Computer Science
University of Utah