manaliKnowledge Contributor
What is a constant in programming?
What is a constant in programming?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
A constant is a value that cannot be changed during the execution of a program. Constants are used to represent fixed values that are referenced multiple times in the code, helping to improve readability and maintainability. For example, PI in mathematical calculations can be defined as a constant.