Skip to content

Can you add one to a number without using anything but #define ?

Notifications You must be signed in to change notification settings

Hypercookie/PlusOneInC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

PlusOneInC

Can you add one to a number without using anything but #define ?

Yes you can.

The above code uses nothing but macros to add +1 to any number with 9 or less digits. (It can also decrement)
Some of it is taken from this amazing blog, but most of it is just pain.

Please rescue me!

About

Can you add one to a number without using anything but #define ?

Topics

Resources

Stars

Watchers

Forks