Chapter - 3: Graduating to C++

Why is using const a better idea than an equivalent #define ?


D
Sections
7
Exercises

Because #define are always global while const can be global as well as local.


© 2020 Garbage Valuegarbage value logo