Variable)
ASCII character (-  char             128Unsigned                     -  char   int      -            -  long           3.4...
C             Variable Declaration)type name;type :name :             C                                 main
#include <stdio.h>int num;                numfloat y;            y
C    C
A-Z     a-z      Underscore)                   A-Za-z   -           Reserved Word)
C             ANSI Standard C)       defa          regist        volatilauto           float        struct         break  ...
C      char                        stringchar name[n] = "str";namenstr
CC
C        --
a>b a       ba >= b a            b   a<b a        ba <= b a            b    a == b a    b
x < 60 && x > 50         xx == 10 || x == 15       xx = 10 !x            x
-
C         printf            printf                  int       floatstring
%d%u%f%c
printf                              Hello printf("Hello                  Program C Program C");printf("Lampang            ...
scanf         C scanf
scanf()scanf("format",&variable);forma   t         printf() varia  ble
บทที่ 2 การเขียนคำสั่งขั้นพื้นฐาน
บทที่ 2 การเขียนคำสั่งขั้นพื้นฐาน
บทที่ 2 การเขียนคำสั่งขั้นพื้นฐาน
Upcoming SlideShare
Loading in...5
×

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

756
-1

Published on

Published in: Education, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

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

No notes for slide

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

  1. 1. Variable)
  2. 2. ASCII character (- char 128Unsigned - char int - - long 3.4E-38 E+38 Float 1.7E-308Double E+308Unsigned int
  3. 3. C Variable Declaration)type name;type :name : C main
  4. 4. #include <stdio.h>int num;  numfloat y;  y
  5. 5. C C
  6. 6. A-Z a-z Underscore) A-Za-z - Reserved Word)
  7. 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. 8. C char stringchar name[n] = "str";namenstr
  9. 9. CC
  10. 10. C --
  11. 11. a>b a ba >= b a b a<b a ba <= b a b a == b a b
  12. 12. x < 60 && x > 50 xx == 10 || x == 15 xx = 10 !x x
  13. 13. -
  14. 14. C printf printf int floatstring
  15. 15. %d%u%f%c
  16. 16. printf Hello printf("Hello Program C Program C");printf("Lampang Lampang kunlayanee kunlayanee school school"); Lampangprintf("Lampang Thailand Thailand");
  17. 17. scanf C scanf
  18. 18. scanf()scanf("format",&variable);forma t printf() varia ble
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×