Full width home advertisement

Post Page Advertisement [Top]

                                             KINDS OF LITERALS

          Class12 

C++ Revision Tour 

1) Must have at least one digits

 2) Doesn’t contain any decimal points. 

3) Contain either + or – sign.

 4) A number with no sign is assumed to be +ve.

 5) Comma is strictly restricted in c++ integer constant.

 Integer constant: It is whole number without any fraction part. 

Bool literals: The two values that work on only two conditions either true(1) and false(0). ➢The Method of writing integer constants 

TYPES OF INTEGER CONSTANT 

1. Decimal(base 10)

 2. Octal(base 8)

 3. Hexadecimal(base 16) 

Character constant: A character constant is one characters enclosed in single quotes.

 Ex. ‘c’ 99 ‘A’ 65 

ASCII:- American standard code for information interchange

 ISCII:- Indian standard code for information interchange 

Floating constant: The Numbers having fractional part is known as floating constant

. Real Constant 

                       Fractional form                                    Exponent form Valid 


Download Complete pdf

No comments:

Post a Comment

Bottom Ad [Post Page]