C Programming Basic Idea
The c character set :
Letter/Alphabets : A to Z (upper case)
a to z (lower case)
Digits : 0 to 9
Special symbol : + - * / = % ! ? ^ " ' - \ | < > ( ) < > [ ] : ; . , _(blank space)
Identifier(variable, function,array,pointer) :
# Letters + digit.
# 1st character must be a letter.
# Upper case + lower case.
# A and a are not same.(Not a interchangeable total =! TOTAL )
# Underscore( _ ) it is consider to be as a letter.
# White space is not allowed.
Keywords :
auto else switch
break for union
case goto void
char if while
const int volatile
continue long
default return
do sizeof
double static
Data types :
data type Memory
char 1 byte or 8 bit
int 2 byte or 16 bit
float 4 byte or 32 bit
double 8 byte or 64 bit
void valueless.
Type Typical Size in Bits Minimal Range
char 8 –127 to 127
unsigned char 8 0 to 255
signed char 8 –127 to 127
int 16 or 32 –32,767 to 32,767
unsigned int 16 or 32 0 to 65,535
signed int 16 or 32 Same as int
short int 16 –32,767 to 32,767
unsigned short int 16 0 to 65,535
signed short int 16 Same as short int
long int 32 –2,147,483,647 to 2,147,483,647
long long int 64 –(263 –1) to 263 –1 (Added by C99)
signed long int 32 Same as long int
unsigned long int 32 0 to 4,294,967,295
unsigned long long int 64 264 –1 (Added by C99)
float 32 1E–37 to 1E+37 with six digits of precision
double 64 1E–37 to 1E+37 with six digits ofprecision
long double 80 1E–37 to 1E+37 with six digits of precision
TABLE::::: All Data Types Defined by the C Standard
Type Typical Size in Bits Minimal Range
char 8 –127 to 127
unsigned char 8 0 to 255
signed char 8 –127 to 127
int 16 or 32 –32,767 to 32,767
unsigned int 16 or 32 0 to 65,535
signed int 16 or 32 Same as int
short int 16 –32,767 to 32,767
unsigned short int 16 0 to 65,535
signed short int 16 Same as short int
long int 32 –2,147,483,647 to 2,147,483,647
long long int 64 –(263 –1) to 263 –1 (Added by C99)
signed long int 32 Same as long int
unsigned long int 32 0 to 4,294,967,295
unsigned long long int 64 264 –1 (Added by C99)
float 32 1E–37 to 1E+37 with six digits of precision
double 64 1E–37 to 1E+37 with six digits ofprecision
long double 80 1E–37 to 1E+37 with six digits of precision
TABLE::::: All Data Types Defined by the C Standard
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home