Constant in C


                   Constant in C


Constant
The constant in  C are available to the values which do not change during the execution of the program.




There are several types of constant in C:
a.Integer Constant
5,10,15......., these are the sequence of the number from 0(zero) to nine without decimal point or fractional part or any other symbols.

b.Real Constant
Real Constant are often known as floating point constant. Integer constant are unfit to represent floating value,then it is represented by real constant.

c. Character Constant
Character Constant has two types as follows:
1. Single Character Constant
A character Constant is a single character. They are also represented with a single digit or a single special symbol or white space (blank space) enclosed within a pair of single quote(") marks.

2.String Constant
String Constant of character in closed within a double quote mark("....").The string may be combination of all kinds of symbol.
example:  "Ishwar"
                   "Rohit" etc.




         " When Life Puts You"
           In Tough Situations,
          Don't Say 'Why ME '
           Just Say 'Try ME'
                          

                                 ANJALI SINGH
      



Comments

Post a Comment

Popular posts from this blog

Introduction of C Language

Computer generation