Chapter
Comments
From ComputerScienceOne by Dr Chris Bourke
Concepts
- How does the #define macro create an alias for a value?
"#define MILES_PER_KM 1.609\n\nThe macro defines an “alias” for the MILES_PER_KM identifier as the value 1.609. Essentially, the C preprocessor will go through the code and any instance of MILES_PER_K
- How are comments written and used in a C program?
"Comments can be written in a C program either as a single line using two forward slashes, //comment or as a multiline comment using a combination of forward slash and asterisk: /* comment */. With a