Unit - Character data types ( char )
Storage word char is use to declare variable character.
Syantax char name_identifier
example: char huruf;
char lagi;
This declaration means that variable lagi and huruf will given a memory storage for character data type. Character variable store printed data or un printed data in character set of computer includes;
• small and capital letters
• decimal digits (0-9)
• special character
This character represent in 1 byte (8 bit) computer memory. Internal representative for character value decided by encoder character (ASCII or EBCDIC) that is used in the computer.
Syantax char name_identifier
example: char huruf;
char lagi;
This declaration means that variable lagi and huruf will given a memory storage for character data type. Character variable store printed data or un printed data in character set of computer includes;
• small and capital letters
• decimal digits (0-9)
• special character
This character represent in 1 byte (8 bit) computer memory. Internal representative for character value decided by encoder character (ASCII or EBCDIC) that is used in the computer.
No comments:
Post a Comment