169. print*,char(7) causes the program to beep.#

topic: Character variables

Note

This tip is a draft1.

In ASCII and Unicode the character with the value 7 is BEL, so

print*,char(7)

will cause the program to beep, which can be used to signal completion.



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.