Day 80/100 100 Days of Code
Constexpr

AKA Chris, is a software developer from Athens, Greece. He started programming with basic when he was very young. He lost interest in programming during school years but after an unsuccessful career in audio, he decided focus on what he really loves which is technology.
He loves working with older languages like C and wants to start programming electronics and microcontrollers because he wants to get into embedded systems programming.
I read and watched videos about constexpr. Constexpr is a fascinating concept. It is a specifier used to evaluate a value or a variable during compilation. This means it can be applied to both variables and functions/methods.
Using constexpr provides a significant performance boost because the program uses the result directly instead of calling the function. However, I struggle to see its usefulness. Wouldn't it be better to use the result rather than a function?




