Programming with C

⌘K
  1. Home
  2. Docs
  3. Programming with C
  4. Basics of C Programming
  5. Constants
  6. Qualified constants

Qualified constants

Qualified constants are created using const qualifier.

Example

const int a = 10

Consider the statements,

int a = 10

It is possible to modify the value of a

const int a = 10

It is possible to read the value placed within the memory location, but it is not possible to modify the value

Views: 0

How can we help?

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments