1
0
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:
Levi Bostian
2013-11-24 15:01:24 -06:00
parent af9cc6e9b9
commit bb4f644a19

View File

@@ -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};