[WEBINAR] The New Normal: Dealing with the Reality of an Unsecure World


Definition - What does Const mean?

Const is programming syntax that is used to declare a constant variable in languages like C. This is one way of creating a variable that will be used once or many times in code. A constant variable is one that will not change after the program is complied.

Techopedia explains Const

Using const to create a variable gives that variable definition in terms of its identity within code, but it may not specify an amount of memory storage for the variable without additional syntax. Programmers who have declared a constant variable can declare pointers to that variable, which can be used to return certain arrays or strings from functions.

In some ways, the use of the const indicator is somewhat controversial. Although many see it as an improvement over the #define command in C and related languages, others feel that the use of const can become problematic in parameter passing and other similar uses. For example, it could cause confusion about whether a value needs to be changed.

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
"Techopedia" on Twitter

Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.