Revision as of 14:49, 20 February 2020 by JoeStrout (talk | contribs) (Created page with "<c>print</c> is an intrinsic function that displays a string to the user. It is a standard intrinsic, though there may be some implement...")
print
is an intrinsic function that displays a string to the user. It is a standard intrinsic, though there may be some implementations where this output is not actually visible. In implementations that have something like a standard output stream, print
adds the given string to that stream, typically followed by the standard line delimiter.
Arguments
Parameter Name | Default Value | Meaning |
---|---|---|
s | "" | string to display to the user |
Usage Notes
print
returns null, and so it is usually used as a statement. As such, it does not require parentheses around its argument.
The argument defaults to an empty string, so print
by itself may be used to print a blank line.
Example
print "Hello, world!"