/* CSE 374, Winter 2014 */ #include /* In addition to using the #include directive to include definitions from libraries or user-defined functions, can use the #define directive to define macros or, as in this case, a global constant. */ #define MAGIC 17 /* Here we have a signature for main that accepts no arguments (empty parameter list). */ int main() { /* Here we have another example of printf, this time with a formatting command. The %d will be replaced with the value of the constant MAGIC before the string is sent to printf. Other formatting commands include %s for strings and %f for floating point numbers. %d stands for decimal or integer. Extra arguments are added in a comma-separated list behind the main string in the order in which the placeholder formatting commands appear in the string. */ printf("hello\nthe magic number is %d\n", MAGIC); return 0; }