C Constants

Constants in C refer to fixed values that do not change during the executing of a program. C Support several types of constants are listed below.

  • Numeric Constants
    • Integer Constants
    • Real Constants

  • Character Constants
    • Single Character Constants
    • String Constants

  • Integer Constants:
  • An integers constant refers to a sequence of digits. There are three types of integers namely decimal, integers, octal integer and hexadecimal integer.
    Examples : 125    -562    0    9635    +776
    Embedded space, commas, and non-digit characters are not permitted between digits. Below examples are illegal numbers.
    Examples : 15 750    20,000    $6325

  • Real Constants
  • Single Character Constants
  • String Constants

Make Comments..!!


Oops!! No posts from user.