Upcoming SlideShare
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Standard text messaging rates apply

# บทที่ 2 การเขียนคำสั่งขั้นพื้นฐาน

715

Published on

Published in: Education, Technology
1 Like
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

Views
Total Views
715
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
12
0
Likes
1
Embeds 0
No embeds

No notes for slide

### Transcript

• 1. Variable)
• 2. ASCII character (- char 128Unsigned - char int - - long 3.4E-38 E+38 Float 1.7E-308Double E+308Unsigned int
• 3. C Variable Declaration)type name;type :name : C main
• 4. #include <stdio.h>int num;  numfloat y;  y
• 5. C C
• 6. A-Z a-z Underscore) A-Za-z - Reserved Word)
• 7. C ANSI Standard C) defa regist volatilauto float struct break ult er e doubl do far return switch while case e typede signegoto short char else if f dunio unsig contin const enum int sizeof n ned ueexter long static void n Borland C
• 8. C char stringchar name[n] = "str";namenstr
• 9. CC
• 10. C --
• 11. a>b a ba >= b a b a<b a ba <= b a b a == b a b
• 12. x < 60 && x > 50 xx == 10 || x == 15 xx = 10 !x x
• 13. -
• 14. C printf printf int floatstring
• 15. %d%u%f%c
• 16. printf Hello printf("Hello Program C Program C");printf("Lampang Lampang kunlayanee kunlayanee school school"); Lampangprintf("Lampang Thailand Thailand");
• 17. scanf C scanf
• 18. scanf()scanf("format",&variable);forma t printf() varia ble