mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 15:24:09 +03:00
Fix #define as it does not use = sign.
This commit is contained in:
parent
af9cc6e9b9
commit
bb4f644a19
@ -21,7 +21,7 @@ Multi-line comments look like this. They work in C89 as well.
|
||||
*/
|
||||
|
||||
// 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.
|
||||
enum days {SUN = 1, MON, TUE, WED, THU, FRI, SAT};
|
||||
|
Loading…
Reference in New Issue
Block a user