Page 78 - C-Language
P. 78
gcc example.c -o example
It supports three command-line options (--help, --file, and --msg). All have a "short form" as well (
-h, -f, and -m). The "file" and "msg" options both accept arguments. If you specify the "msg"
option, its argument is required.
Arguments for options are formatted as:
• --option=value (for long-form options)
• -ovalue or -o"value" (for short-form options)
Read Command-line arguments online: https://riptutorial.com/c/topic/1285/command-line-
arguments
https://riptutorial.com/ 54

