The C or the Combined Programming Language.
It uses some of the data types are the char, int, void, the floating, the double floating and some more.
char - values are used to hold ASCII characters or any 8-bit quantity.
int - values are used to hold real numbers. Real numbers have both an integer.
void – it has three uses.namely; (1)To declare explicitly a function as returning no value, (2) To declare explicitly a function as having no parameters, and (3) To create generic pointers.
float and double - values are used to hold real numbers. Real numbers have both an integer and fractional component.
These data types have its limitations. The following states the limit of each data type:
CHAR = from 0 to 255.
INT = -32768 to 32767.
VOID =not applicable for it is valueless.
FLOAT = 3.4 X 10-38 to 3.4 X 1038
DOUBLE FLOAT =1.7 x 10-308 to 1.7 x 10308.
The C Programming Language has 32 keywords. Twenty- seven which are given by Brian Kernighan and Dennis Ritchie standard and the five added by the ANSI (American National Standard Institute). Keywords in C are reserved words that have a special meaning. Reserved words are words “reserved” by the programming language for expressing various statements and constructs, thus, these may not be redefined by the programmer.
The following are the known 32 keywords:
auto break case char const continue def default do double else enum extern float for goto int long of register return short signed size struct switch type union unsigned void volatile if static while
No comments:
Post a Comment