Today we are going to know about the various types of data used in our programming world.
Integer:
Integers are whole numbers that can have both positive and negative values but no decimal values. Example: 0, 5, -5, 10, -10.
Float:
Floating point value, a number with fractional part. It is the real numbers such as: 2.34, -9.352, 6.0 etc. You can declare a floating point variable in C by using either "float" or "double" keyword.
Character:
A single character
short:
The keyword short stands for small number in programming.
long:
The keyword long stands for long number in programming.
byte:A byte stores an 8 bit unsigned number, from 0 to 255.
No comments:
Post a Comment