mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-16 03:34:53 +02:00
Fix #define as it does not use = sign.
This commit is contained in:
@@ -21,7 +21,7 @@ Multi-line comments look like this. They work in C89 as well.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Constants: #define <keyword> (no semicolon at end)
|
// Constants: #define <keyword> (no semicolon at end)
|
||||||
#define DAYS_IN_YEAR = 365
|
#define DAYS_IN_YEAR 365
|
||||||
|
|
||||||
//enumeration constants are also ways to declare constants.
|
//enumeration constants are also ways to declare constants.
|
||||||
enum days {SUN = 1, MON, TUE, WED, THU, FRI, SAT};
|
enum days {SUN = 1, MON, TUE, WED, THU, FRI, SAT};
|
||||||
|
Reference in New Issue
Block a user