Basics of C-1 (Anshika)
Basics of C-1 (Anshika)
By Anshika
Introduction of ‘C’
Integer constants
• A integer constant is a numeric constant (associated with
number) without any fractional or exponential part. There are
three types of integer constants in C programming:
Floating-point constants
• A floating point constant is a numeric constant that has either
a fractional form or an exponent form. For example:
2.0,0.0000234,-0.22E-5
Character constants
• A character constant is a constant which uses single
quotation around characters. For example: 'a', 'l', 'm', 'F'
String constants
• String constants are the constants which are enclosed in a
pair of double-quote marks. For example: "good" ,"x","Earth is
round\n"
Escape Sequences