While they both serve a similar purpose, #define and const act differently. When using #define the identifier gets replaced by the specified value by the compiler, before the code is turned into binary. This means that the compiler makes the substitution when you compile the application. Take for example: #define number 108 In this case […]
Smart Pointers – Part II
In this part we implement a Garbage Collection with C++.