What is Constants ?


  • C Constants are also like normal variables. But, only difference is, their values can not be modified by the program once they are defined.
  • Constants refer to fixed values. They are also called as literals
  • Constants may be belonging to any of the data type.

Types of C constant:

  1.     Integer constants
  2.     Real or Floating point constants
  3.     Octal & Hexadecimal constants
  4.     Character constants
  5.     String constants
  6.     Backslash character constants




Related Topics
Related Topics