Is there any efficiency distinction between `enum c{a}`, `magnificence c{static const int a = 0;}`, and the similar magnificence with `summary` key phrase added

Hi,

​

I exploit constants so much, so would possibly i ask

What is also the **benefits** and **disadvantages**, of the usage of the next, now not handiest efficiency, however any/all:

​

1. `enum c{ a, b }`
2. `magnificence c{ static const int a = 0; static const int b = 1; }` ( if we forget about the boilerplate )
3. `summary magnificence c{ static const int a = 0; static const int b = 1; }` ( ignoring the boilerplate once more )
4. `const int a = 0, b = 1;` ( natural international, no magnificence or enum )

​

thanking you…



View Reddit via AsparagusBitter2430View Supply

You may also like...

WP2Social Auto Publish Powered By : XYZScripts.com