C++ : Why do people use enums in C++ as constants while they can use const?

Channel:
Subscribers:
76,400
Published on ● Video Link: https://www.youtube.com/watch?v=ym-uELSvxLU



Duration: 1:07
0 views
0


C++ : Why do people use enums in C++ as constants while they can use const?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"

As promised, I have a secret feature that I want to reveal to you.
This is a YouTube's feature which works on Desktop.
First, Make sure the video is currently in playing mode.
Then, type the letters 'awesome' on the keyboard.
Your YouTube progress indicator will turn into a shimmering rainbow.

Here's a brief description of who I am,
Good day, I am Delphi.
Allow me to provide support in answering your questions.
C++ : Why do people use enums in C++ as constants while they can use const?
I am happy to answer more specific questions, so please feel free to comment or chat with me.
If you have an answer or any additional information on the answer, please leave a comment below.
A 'heart' from me is a way of showing appreciation for your answer.
C++ people while enums const? constants use they Why in : do C++ can use as




Other Videos By Hey Delphi


2023-04-16R : How to fix intercept value of glm
2023-04-16PHP : How do I include the split delimiter in results for preg_split()?
2023-04-16R : How can I convert a numeric vector with discreete value ranges into a factor?
2023-04-16Windows : Why such a disparity in pricing between Windows and Linux hosting services
2023-04-16jQuery : Why is jQuery's .data method behaving like this? (Possible bug?)
2023-04-16Windows : How to fix Qt Visual Studio Tools "Object reference not set to an instance of an object"?
2023-04-16C++ : Why std::string hasn't const char* cast operator in C++11?
2023-04-16jQuery : Can firebug or developer tools use to hack a web site?
2023-04-16NodeJS : How should I use moment-timezone with webpack?
2023-04-16NodeJS : How to determine the time Node.js spends to send an HTTP response body?
2023-04-16C++ : Why do people use enums in C++ as constants while they can use const?
2023-04-16C# : Why returning dataset or data table from WCF service is not a good practice? What are the Alter
2023-04-16PYTHON : Can you "stream" images to ffmpeg to construct a video, instead of saving them to disk?
2023-04-16C# : Is there a builtin confirmation dialog in Windows Forms?
2023-04-16C# : How to do ToString for a possibly null object?
2023-04-16C# : How does binding elementname work exactly?
2023-04-16NodeJS : What is the difference between const and const {} in JavaScript
2023-04-16CSS : How to use jquery error(red) icons
2023-04-16Android : Is google-services.json confidential?
2023-04-16Array : How can I add characters before and after each ID in this array?
2023-04-16C++ : How can I simulate a button click given the handle to the button's window?