Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
F
1. F F F
2. F F F
3. F underline _ F3. F underline _ F
4. F F reserved words F int, float, etc.
Note: F F
F F 8 F F F
F
1
C reserved keywords
2
F
F F F
char
intint
short
long ˈ 2 F
unsigned F
float
double ˈ 2 F
3
F
F ( F) F
Char 1 ASCII F 1 F 0 255
Int 2 F F 32768 32767
Short 2 F F 32768 32767Short 2 F F 32768 32767
Long 4 F ± 2000 F...
F
F F F ˈ 4 F
F
F
F
F
F
5
F
F char F F
# include <stdio.h>
main ( )
{{
char reply;
reply = y;
}
6
F F ˈ
F F F F F F F F ˈ
ASCII F  F F
F F 
F
BELL F ASCII 007 F
beep = 007 ;
F F n
ˈ newline = n ;
7
F
# include <stdio.h>
main ( )
{
char newline;char newline;
newline = n;
printf( Hello, Good morning. %c ,newline);
printf...
F
F F 4 int, short, long
unsigned
unsigned F
F F F F int shortF F F F int short
long F F
unsigned int plusnum;
unsigned lo...
F
F 2 float
double double F F ˈ 2 F float
F F F
F F F FF F F F
F F
9,000,000,000 9.0*109 9.0e9
345,000 3.45*105 3.45e5
0.0...
F
ˈ F
F F
(array) F F
F [ ]F [ ]
char name[30];
name ˈ char 30
ˈ F F F F
null 0 F 29
11
F F F F
F F F
F F
main ( )
{
int age = 18;
{
int age = 18;
float height;
char name[30] = Mr. Surasak”;
height = 172.5;
pri...
F F F F
F
# include <stdio.h>
main ( )
{
int sum,valuea;
F F :
Total value is 5.
int sum,valuea;
int count = 1;
valuea = 4...
Prochain SlideShare
Chargement dans…5
×

ชนิดข้อมูลและตัวแปร

239 vues

Publié le

  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

ชนิดข้อมูลและตัวแปร

  1. 1. F 1. F F F 2. F F F 3. F underline _ F3. F underline _ F 4. F F reserved words F int, float, etc. Note: F F F F 8 F F F F 1
  2. 2. C reserved keywords 2
  3. 3. F F F F char intint short long ˈ 2 F unsigned F float double ˈ 2 F 3
  4. 4. F F ( F) F Char 1 ASCII F 1 F 0 255 Int 2 F F 32768 32767 Short 2 F F 32768 32767Short 2 F F 32768 32767 Long 4 F ± 2000 F Unsigned Unsigned short = 2 Unsigned long = 4 F F 0 65535 F F 0 4000 F Float 4 F F 10x x F F 37 +38 Double 8 F F 4
  5. 5. F F F F ˈ 4 F F F F F F 5
  6. 6. F F char F F # include <stdio.h> main ( ) {{ char reply; reply = y; } 6
  7. 7. F F ˈ F F F F F F F F ˈ ASCII F F F F F F BELL F ASCII 007 F beep = 007 ; F F n ˈ newline = n ; 7
  8. 8. F # include <stdio.h> main ( ) { char newline;char newline; newline = n; printf( Hello, Good morning. %c ,newline); printf( Hello, Good morning.n ); } 8
  9. 9. F F F 4 int, short, long unsigned unsigned F F F F F int shortF F F F int short long F F unsigned int plusnum; unsigned long width; unsigned short absno; /* absolute number */ 9
  10. 10. F F 2 float double double F F ˈ 2 F float F F F F F F FF F F F F F 9,000,000,000 9.0*109 9.0e9 345,000 3.45*105 3.45e5 0.00063 6.3*10-4 6.3e-4 0.00000924 9.24*10-6 9.24e-6 10
  11. 11. F ˈ F F F (array) F F F [ ]F [ ] char name[30]; name ˈ char 30 ˈ F F F F null 0 F 29 11
  12. 12. F F F F F F F F F main ( ) { int age = 18; { int age = 18; float height; char name[30] = Mr. Surasak”; height = 172.5; printf( Name: %s is %d years old , name, age); printf( and tall %f cms.n ,height); } 12
  13. 13. F F F F F # include <stdio.h> main ( ) { int sum,valuea; F F : Total value is 5. int sum,valuea; int count = 1; valuea = 4; sum = count + valuea; printf( Total value is %d.n ,sum); } Total value is 5. 13

×