Programming with C

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

Constants

Introduction

Constant is an identifier whose value remains same throughout the execution of the program. The value of the constant is known to the compiler at compile time. It cannot be placed on the left side of the assignment operator and can only be placed on the right side of the assignment operator

Types of Constants,

  • Literal Constants
    • Integer literal constants
    • Floating point literal constants
    • Character Literal Constants
    • String Literal Constants
  • Qualified constants
  • Symbolic Constants
  • Enumeration Constants

Views: 0

Articles

Tags ,

How can we help?

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments