SlideShare a Scribd company logo
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
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
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( Hello, Good morning.n );
}
8
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
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
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;
printf( Name: %s is %d years old , name, age);
printf( and tall %f cms.n ,height);
}
12
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

More Related Content

What's hot

Animation Lzw Encoding
Animation Lzw EncodingAnimation Lzw Encoding
Animation Lzw Encodingvasants18
 
B Trees
B TreesB Trees
B Trees
Aisu
 
Ch06
Ch06Ch06
Ch06
Hankyo
 
Ch04
Ch04Ch04
Ch04
Hankyo
 

What's hot (7)

Flisol
FlisolFlisol
Flisol
 
Animation Lzw Encoding
Animation Lzw EncodingAnimation Lzw Encoding
Animation Lzw Encoding
 
B Trees
B TreesB Trees
B Trees
 
Ch06
Ch06Ch06
Ch06
 
1
11
1
 
ฟังก์ชัน Printf&scanf
ฟังก์ชัน Printf&scanfฟังก์ชัน Printf&scanf
ฟังก์ชัน Printf&scanf
 
Ch04
Ch04Ch04
Ch04
 

Recently uploaded

This Is The First All Category Quiz That I Made
This Is The First All Category Quiz That I MadeThis Is The First All Category Quiz That I Made
This Is The First All Category Quiz That I Made
Aarush Ghate
 
Tom Selleck Net Worth: A Comprehensive Analysis
Tom Selleck Net Worth: A Comprehensive AnalysisTom Selleck Net Worth: A Comprehensive Analysis
Tom Selleck Net Worth: A Comprehensive Analysis
greendigital
 
Skeem Saam in June 2024 available on Forum
Skeem Saam in June 2024 available on ForumSkeem Saam in June 2024 available on Forum
Skeem Saam in June 2024 available on Forum
Isaac More
 
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
Rodney Thomas Jr
 
A TO Z INDIA Monthly Magazine - JUNE 2024
A TO Z INDIA Monthly Magazine - JUNE 2024A TO Z INDIA Monthly Magazine - JUNE 2024
A TO Z INDIA Monthly Magazine - JUNE 2024
Indira Srivatsa
 
Are the X-Men Marvel or DC An In-Depth Exploration.pdf
Are the X-Men Marvel or DC An In-Depth Exploration.pdfAre the X-Men Marvel or DC An In-Depth Exploration.pdf
Are the X-Men Marvel or DC An In-Depth Exploration.pdf
Xtreame HDTV
 
Scandal! Teasers June 2024 on etv Forum.co.za
Scandal! Teasers June 2024 on etv Forum.co.zaScandal! Teasers June 2024 on etv Forum.co.za
Scandal! Teasers June 2024 on etv Forum.co.za
Isaac More
 
The Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy DirectorThe Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy Director
Mark Murphy Director
 
Hollywood Actress - The 250 hottest gallery
Hollywood Actress - The 250 hottest galleryHollywood Actress - The 250 hottest gallery
Hollywood Actress - The 250 hottest gallery
Zsolt Nemeth
 
Meet Crazyjamjam - A TikTok Sensation | Blog Eternal
Meet Crazyjamjam - A TikTok Sensation | Blog EternalMeet Crazyjamjam - A TikTok Sensation | Blog Eternal
Meet Crazyjamjam - A TikTok Sensation | Blog Eternal
Blog Eternal
 
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdfMaximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Xtreame HDTV
 
Panchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdfPanchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdf
Suleman Rana
 
Christina's Baby Shower Game June 2024.pptx
Christina's Baby Shower Game June 2024.pptxChristina's Baby Shower Game June 2024.pptx
Christina's Baby Shower Game June 2024.pptx
madeline604788
 
Reimagining Classics - What Makes a Remake a Success
Reimagining Classics - What Makes a Remake a SuccessReimagining Classics - What Makes a Remake a Success
Reimagining Classics - What Makes a Remake a Success
Mark Murphy Director
 

Recently uploaded (14)

This Is The First All Category Quiz That I Made
This Is The First All Category Quiz That I MadeThis Is The First All Category Quiz That I Made
This Is The First All Category Quiz That I Made
 
Tom Selleck Net Worth: A Comprehensive Analysis
Tom Selleck Net Worth: A Comprehensive AnalysisTom Selleck Net Worth: A Comprehensive Analysis
Tom Selleck Net Worth: A Comprehensive Analysis
 
Skeem Saam in June 2024 available on Forum
Skeem Saam in June 2024 available on ForumSkeem Saam in June 2024 available on Forum
Skeem Saam in June 2024 available on Forum
 
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
 
A TO Z INDIA Monthly Magazine - JUNE 2024
A TO Z INDIA Monthly Magazine - JUNE 2024A TO Z INDIA Monthly Magazine - JUNE 2024
A TO Z INDIA Monthly Magazine - JUNE 2024
 
Are the X-Men Marvel or DC An In-Depth Exploration.pdf
Are the X-Men Marvel or DC An In-Depth Exploration.pdfAre the X-Men Marvel or DC An In-Depth Exploration.pdf
Are the X-Men Marvel or DC An In-Depth Exploration.pdf
 
Scandal! Teasers June 2024 on etv Forum.co.za
Scandal! Teasers June 2024 on etv Forum.co.zaScandal! Teasers June 2024 on etv Forum.co.za
Scandal! Teasers June 2024 on etv Forum.co.za
 
The Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy DirectorThe Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy Director
 
Hollywood Actress - The 250 hottest gallery
Hollywood Actress - The 250 hottest galleryHollywood Actress - The 250 hottest gallery
Hollywood Actress - The 250 hottest gallery
 
Meet Crazyjamjam - A TikTok Sensation | Blog Eternal
Meet Crazyjamjam - A TikTok Sensation | Blog EternalMeet Crazyjamjam - A TikTok Sensation | Blog Eternal
Meet Crazyjamjam - A TikTok Sensation | Blog Eternal
 
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdfMaximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
 
Panchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdfPanchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdf
 
Christina's Baby Shower Game June 2024.pptx
Christina's Baby Shower Game June 2024.pptxChristina's Baby Shower Game June 2024.pptx
Christina's Baby Shower Game June 2024.pptx
 
Reimagining Classics - What Makes a Remake a Success
Reimagining Classics - What Makes a Remake a SuccessReimagining Classics - What Makes a Remake a Success
Reimagining Classics - What Makes a Remake a Success
 

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

  • 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
  • 3. F F F F char intint short long ˈ 2 F unsigned F float double ˈ 2 F 3
  • 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. F F F F ˈ 4 F F F F F F 5
  • 6. F F char F F # include <stdio.h> main ( ) {{ char reply; reply = y; } 6
  • 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. F # include <stdio.h> main ( ) { char newline;char newline; newline = n; printf( Hello, Good morning. %c ,newline); printf( Hello, Good morning.n ); } 8
  • 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. 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. 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. 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. 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