CO110 Computer Programming3 PDF
CO110 Computer Programming3 PDF
CO110 Computer Programming3 PDF
C Fundamentals
C Character Set
Lower case letters :abc … z
Upper case letters : A B C… . Z
Digits :0123 …9
Special characters : + - * / = % ( ) & % $ # { } [ ] ’ “ :
;^?~<>,
White space characters : blank, new line, tab space
Numeric Character
Order_no order-no
_apple 1a
Keywords
Also known as reserve words.
Keywords are defined by C compiler and each word has
different meaning.
These cannot be used as identifiers for the names of
variables, functions or labels.
Bit - 0/1
1 Nibble = 4 Bits
1 Byte = 8 Bits
1 Word = 2 Bytes/ 16 bits
1 kb= 103 Bytes
1 mb =103 kb
1 gb = 103 mb
Basic data types
There are 4 basic data types in C.
char data type for a single character data.
int data type for integer numbers.
float and double data types for real numbers which differ in precision.