3 1 5 unsigned char 8 bit 0
3. 1. 5 �������� ชนดของตวแป ขนาด คาตำส คาสงสด ร ด unsigned char 8 bit 0 255 char 8 bit -128 127 unsigned int 16 bit 32 bit 0 0 65, 535 4, 294, 967, 295 short int 16 bit -32, 768 32, 767 int 16 bit 32 bit -32, 768 -2, 147, 483, 648 32, 767 2, 147, 483, 647 unsigned long 32 bit 0 4, 294, 967, 295 long 32 bit -2, 147, 483, 648 2, 147, 483, 647 float 32 bit 3. 4 10 -38 3. 4 1038 double 64 bit 1. 7 10 -308 1. 7 10308 8
�������� int number; int a, b, c; float real; float point 1, point 2; char choice; char ch 1, ch 2; 10
�������� int number = 25; int a = 1, b = 2, c = 3; float real = 99. 99; float point 1 = 45. 2, point 2 = 30; char choice = 'a'; char ch 1 = 'o', ch 2 = 'z'; 12
������ (Reserved word ( ���� auto break case char const continue default do double else enum extern float for goto if int long register return short singned sizeof static struct switch typedef union unsigned void volatile while 14
�������� //ตงชอตวแป รถกตอง int _money; float salary_ot; char M 11223_223; double GOTO_data; //ตงชอตวแป รผด int $money; float static; char 1 M 1223_223; double GOTOdata; 15
�������� char str[15]; first[20], last[20]; first[20] last[20] 21
ตวอยางการประกาศและกำหน ดคาตวแปร char subject[12] = "Programming"; char nick[4] = "Com"; char nick_1[4] = {'C', 'o', 'm', '