ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
????? 2 ?????????????????????????
Variable)
????? 2 ?????????????????????????
ASCII character (-
  char
             128
Unsigned
                     -
  char
   int      -
            -
  long
           3.4E-38         E+38
 Float

                1.7E-308
Double            E+308

Unsigned
   int
C

             Variable Declaration)

type name;
type :
name :
             C
                                 main
#include <stdio.h>
int num; ?               num
float y; ?           y
C


    C
A-Z     a-z
      Underscore)

                   A-Z
a-z   -




           Reserved Word)
C             ANSI Standard C)
       defa          regist        volatil
auto           float        struct         break
        ult            er            e
                                           doubl
 do     far return switch while case
                                              e
             typede                        signe
goto   short          char else      if
                  f                           d
unio                               unsig contin
       const enum int sizeof
  n                                 ned      ue
exter
      long static    void
  n
                            Borland C
C

      char
                        string


char name[n] = "str";
nam
e
n


str
C

C
C




        -
-
a>b a       b
a >= b a
            b
   a<b a        b
a <= b a
            b
    a == b a    b
x < 60 && x > 50         x


x == 10 || x == 15       x


x = 10 !x            x
-
C
         printf
            printf

                  int       float
string
%d

%u

%f

%c
printf

                              Hello
 printf("Hello
                  Program C
 Program C");

printf("Lampang             Lampang
  kunlayanee    kunlayanee school
    school");
                            Lampang
printf("Lampang
                  Thailand
   Thailand");
scanf
         C

 scanf
scanf()
scanf("format",&varia
ble);
forma
   t
         printf()



 varia
  ble
????? 2 ?????????????????????????

More Related Content

????? 2 ?????????????????????????

  • 4. ASCII character (- char 128 Unsigned - char int - - long 3.4E-38 E+38 Float 1.7E-308 Double E+308 Unsigned int
  • 5. C Variable Declaration) type name; type : name : C main
  • 6. #include <stdio.h> int num; ? num float y; ? y
  • 7. C C
  • 8. A-Z a-z Underscore) A-Z a-z - Reserved Word)
  • 9. C ANSI Standard C) defa regist volatil auto float struct break ult er e doubl do far return switch while case e typede signe goto short char else if f d unio unsig contin const enum int sizeof n ned ue exter long static void n Borland C
  • 10. C char string char name[n] = "str"; nam e n str
  • 11. C C
  • 12. C - -
  • 13. a>b a b a >= b a b a<b a b a <= b a b a == b a b
  • 14. x < 60 && x > 50 x x == 10 || x == 15 x x = 10 !x x
  • 15. -
  • 16. C printf printf int float string
  • 18. printf Hello printf("Hello Program C Program C"); printf("Lampang Lampang kunlayanee kunlayanee school school"); Lampang printf("Lampang Thailand Thailand");
  • 19. scanf C scanf