SlideShare una empresa de Scribd logo
1 de 19
C

C


C
C

1

             standard functions)

1

                  mathematic functions)

1



                     2–5



    -8
Character functions)

8

         String functions)
8 - 10
C

                                                C



                                                                C



         Header file        C                               h




                       standard functions)

                                     C

header file        C                                h

                                                        header file

                          #include<header file.h>
C compiler




”          ” library functions)




                           mathematic functions)



                                          #include <math.

h>

          type)    double

                             double




acos(x)           asin(x)             atan(x)

sin(x)            cos(x)              tan(x)

sqrt(x)           exp(x)              pow(x,y)
log(x)                log10(x)      ceil(x)

floor(x)              fabs(x)

                acos(x)

                                      arc cosine

     x            x

                      radian)



    acos(x);

           2)             asin(x)

                                      arc sine

x          x




    asin(x);
3)              atan(x)

                                       arc tan

x           x




     atan(x);

                sin(x)

                                       sine      x

        x



      sin(x);

                         5)   cos(x)

                                       cosine        x

        x
cos(x);




6)          tan(x)

                              tan          x      x




     tan(x);

                                    acos(x), asin(x),

atan(x), sin(x),
cos(x)         tan(x)


      acos(x), asin(x), atan(x), sin(x),

cos(x)         tan(x)
*         math1.c           */

#include<stdio.h>

/*

#include<math.h>

/*

#include<conio.h>

/*

void main(void)

/*

{



     double r, pi = 3.141592654;

/*

     r = pi/180;

/*
clrscr();

/*

     printf("%fn",asin(r));

/*

     printf("%fn",acos(r));

/*

     printf("%fn",atan(r));

/*

     printf("%fn",sin(r));

/*

     printf("%fn",cos(r));

/*

     printf("%fn",tan(r));

/*

     printf("nPress any key back to program ..."); /*
getch();

/*

}
printf("%fn",asin(r));

  arc sin                 r       r




printf("%fn",acos(r));
  arc cosine                  r       r
printf("%fn",atan(r));

 arc tan                   r           r




printf("%fn",sin(r));

  sine                 r           r




printf("%fn",cos(r));
  cosine                   r           r




printf("%fn",tan(r));

 tan               r           r
enter




             sqrt(x)

                                     square root)

                          x      x




    sqrt(x);

        8)             exp(x)

                                ex    x

                                             e      e




    exp(x);
9)          pow(x,y)

                       xy



x




y



     pow(x, y);




                            character functions)

                                   single char

(            byte)


#include<ctype.h>




                                   isalnum(ch),
isalpha(ch), isdigit(ch), islower(ch), isupper(ch),

tolower(ch), toupper(ch),

isspace(ch), isxdigit(ch)

        1.3                       string functions)

                                    string)



#include<string.h>



                                  strlen(s), strcmp(s1,s2)

, strcpy(s), strcat(s1,s2)

        1.4

          clrscr( )

                                                      text

mode

          gotoxy(x,y)

cursor)
sizeof(x)

                                        x

Byte




                   user defined functions)




                                        C

           ”        ”


                                    ”        ”




          user define functions : UDF)



                                                 C
ภาษา C โปรแกรมย่อยและฟังก์ชันมาตรฐาน

Más contenido relacionado

La actualidad más candente

3 1. preprocessor, math, stdlib
3 1. preprocessor, math, stdlib3 1. preprocessor, math, stdlib
3 1. preprocessor, math, stdlib
웅식 전
 
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6 1
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6  1ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6  1
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6 1
Little Tukta Lita
 
เมธอด ชั้น ม 6 ห้อง 2
เมธอด ชั้น ม  6 ห้อง 2เมธอด ชั้น ม  6 ห้อง 2
เมธอด ชั้น ม 6 ห้อง 2
Pookie Pook
 
Part 3-functions
Part 3-functionsPart 3-functions
Part 3-functions
ankita44
 

La actualidad más candente (20)

Data Structures - Lecture 6 [queues]
Data Structures - Lecture 6 [queues]Data Structures - Lecture 6 [queues]
Data Structures - Lecture 6 [queues]
 
Lists
ListsLists
Lists
 
3 1. preprocessor, math, stdlib
3 1. preprocessor, math, stdlib3 1. preprocessor, math, stdlib
3 1. preprocessor, math, stdlib
 
Free Monads Getting Started
Free Monads Getting StartedFree Monads Getting Started
Free Monads Getting Started
 
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6 1
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6  1ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6  1
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6 1
 
08. haskell Functions
08. haskell Functions08. haskell Functions
08. haskell Functions
 
U3.stack queue
U3.stack queueU3.stack queue
U3.stack queue
 
week-16x
week-16xweek-16x
week-16x
 
เมธอด ชั้น ม 6 ห้อง 2
เมธอด ชั้น ม  6 ห้อง 2เมธอด ชั้น ม  6 ห้อง 2
เมธอด ชั้น ม 6 ห้อง 2
 
Functions123
Functions123 Functions123
Functions123
 
Functions12
Functions12Functions12
Functions12
 
Part 3-functions
Part 3-functionsPart 3-functions
Part 3-functions
 
Stack, queue and hashing
Stack, queue and hashingStack, queue and hashing
Stack, queue and hashing
 
Python легко и просто. Красиво решаем повседневные задачи
Python легко и просто. Красиво решаем повседневные задачиPython легко и просто. Красиво решаем повседневные задачи
Python легко и просто. Красиво решаем повседневные задачи
 
Class 8b: Numpy & Matplotlib
Class 8b: Numpy & MatplotlibClass 8b: Numpy & Matplotlib
Class 8b: Numpy & Matplotlib
 
Gnuplot 2
Gnuplot 2Gnuplot 2
Gnuplot 2
 
Stack and queue
Stack and queueStack and queue
Stack and queue
 
Introduction to functional programming using Ocaml
Introduction to functional programming using OcamlIntroduction to functional programming using Ocaml
Introduction to functional programming using Ocaml
 
Use the Matplotlib, Luke @ PyCon Taiwan 2012
Use the Matplotlib, Luke @ PyCon Taiwan 2012Use the Matplotlib, Luke @ PyCon Taiwan 2012
Use the Matplotlib, Luke @ PyCon Taiwan 2012
 
Stack using Linked List
Stack using Linked ListStack using Linked List
Stack using Linked List
 

Destacado

โปรแกรมย่อยและฟังก์ชันมาตรฐาน
โปรแกรมย่อยและฟังก์ชันมาตรฐานโปรแกรมย่อยและฟังก์ชันมาตรฐาน
โปรแกรมย่อยและฟังก์ชันมาตรฐาน
Prapatsorn Keawnoun
 
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม.6.1
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม.6.1ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม.6.1
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม.6.1
Little Tukta Lita
 
ตัวแปรในภาษาซี
ตัวแปรในภาษาซีตัวแปรในภาษาซี
ตัวแปรในภาษาซี
boky_peaw
 
Transistor bias circuit
Transistor bias circuitTransistor bias circuit
Transistor bias circuit
Adk Adool
 
ใบความรู้ที่ 1 เรื่อง ทรานซิสเตอร์
ใบความรู้ที่ 1 เรื่อง ทรานซิสเตอร์ใบความรู้ที่ 1 เรื่อง ทรานซิสเตอร์
ใบความรู้ที่ 1 เรื่อง ทรานซิสเตอร์
จุฬาพรรณ คณารักษ์
 

Destacado (7)

โปรแกรมย่อยและฟังก์ชันมาตรฐาน
โปรแกรมย่อยและฟังก์ชันมาตรฐานโปรแกรมย่อยและฟังก์ชันมาตรฐาน
โปรแกรมย่อยและฟังก์ชันมาตรฐาน
 
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม.6.1
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม.6.1ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม.6.1
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม.6.1
 
ตัวแปรในภาษาซี
ตัวแปรในภาษาซีตัวแปรในภาษาซี
ตัวแปรในภาษาซี
 
Transistor bias circuit
Transistor bias circuitTransistor bias circuit
Transistor bias circuit
 
การเขียนคำสั่งขั้นพื้นฐาน(ภาษาC)
การเขียนคำสั่งขั้นพื้นฐาน(ภาษาC)การเขียนคำสั่งขั้นพื้นฐาน(ภาษาC)
การเขียนคำสั่งขั้นพื้นฐาน(ภาษาC)
 
การเขียนโปรแกรมภาษาซี
การเขียนโปรแกรมภาษาซีการเขียนโปรแกรมภาษาซี
การเขียนโปรแกรมภาษาซี
 
ใบความรู้ที่ 1 เรื่อง ทรานซิสเตอร์
ใบความรู้ที่ 1 เรื่อง ทรานซิสเตอร์ใบความรู้ที่ 1 เรื่อง ทรานซิสเตอร์
ใบความรู้ที่ 1 เรื่อง ทรานซิสเตอร์
 

Similar a ภาษา C โปรแกรมย่อยและฟังก์ชันมาตรฐาน

โปรแกรมย่อยและฟังชันก์มาตรฐาน
โปรแกรมย่อยและฟังชันก์มาตรฐานโปรแกรมย่อยและฟังชันก์มาตรฐาน
โปรแกรมย่อยและฟังชันก์มาตรฐาน
knang
 
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
Little Tukta Lita
 
CL metaprogramming
CL metaprogrammingCL metaprogramming
CL metaprogramming
dudarev
 
Python 2.5 reference card (2009)
Python 2.5 reference card (2009)Python 2.5 reference card (2009)
Python 2.5 reference card (2009)
gekiaruj
 
Learning notes of r for python programmer (Temp1)
Learning notes of r for python programmer (Temp1)Learning notes of r for python programmer (Temp1)
Learning notes of r for python programmer (Temp1)
Chia-Chi Chang
 
Chapter 10 Library Function
Chapter 10 Library FunctionChapter 10 Library Function
Chapter 10 Library Function
Deepak Singh
 

Similar a ภาษา C โปรแกรมย่อยและฟังก์ชันมาตรฐาน (20)

โปรแกรมย่อยและฟังชันก์มาตรฐาน
โปรแกรมย่อยและฟังชันก์มาตรฐานโปรแกรมย่อยและฟังชันก์มาตรฐาน
โปรแกรมย่อยและฟังชันก์มาตรฐาน
 
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
โปรแกรมย่อยและฟังชั่นมาตรฐาน ม.6 1
 
Introduction to R programming
Introduction to R programmingIntroduction to R programming
Introduction to R programming
 
CL metaprogramming
CL metaprogrammingCL metaprogramming
CL metaprogramming
 
Lex (lexical analyzer)
Lex (lexical analyzer)Lex (lexical analyzer)
Lex (lexical analyzer)
 
Abstract machines for great good
Abstract machines for great goodAbstract machines for great good
Abstract machines for great good
 
Python 2.5 reference card (2009)
Python 2.5 reference card (2009)Python 2.5 reference card (2009)
Python 2.5 reference card (2009)
 
R language introduction
R language introductionR language introduction
R language introduction
 
R Language Introduction
R Language IntroductionR Language Introduction
R Language Introduction
 
SVGo workshop
SVGo workshopSVGo workshop
SVGo workshop
 
R graphics
R graphicsR graphics
R graphics
 
กลุ่ม6
กลุ่ม6กลุ่ม6
กลุ่ม6
 
ANSI C REFERENCE CARD
ANSI C REFERENCE CARDANSI C REFERENCE CARD
ANSI C REFERENCE CARD
 
Real Time Big Data Management
Real Time Big Data ManagementReal Time Big Data Management
Real Time Big Data Management
 
Class 31: Deanonymizing
Class 31: DeanonymizingClass 31: Deanonymizing
Class 31: Deanonymizing
 
Learning notes of r for python programmer (Temp1)
Learning notes of r for python programmer (Temp1)Learning notes of r for python programmer (Temp1)
Learning notes of r for python programmer (Temp1)
 
ML-CheatSheet (1).pdf
ML-CheatSheet (1).pdfML-CheatSheet (1).pdf
ML-CheatSheet (1).pdf
 
A Proposition for Business Process Modeling
A Proposition for Business Process ModelingA Proposition for Business Process Modeling
A Proposition for Business Process Modeling
 
Chapter 10 Library Function
Chapter 10 Library FunctionChapter 10 Library Function
Chapter 10 Library Function
 
Introduction To Lisp
Introduction To LispIntroduction To Lisp
Introduction To Lisp
 

Más de Noppanon YourJust'one

ส่งภาพประกวด
ส่งภาพประกวดส่งภาพประกวด
ส่งภาพประกวด
Noppanon YourJust'one
 
การนำเข้าไฟล์เสียง
การนำเข้าไฟล์เสียงการนำเข้าไฟล์เสียง
การนำเข้าไฟล์เสียง
Noppanon YourJust'one
 
กิจกรรมส่งภาพประกวด
กิจกรรมส่งภาพประกวดกิจกรรมส่งภาพประกวด
กิจกรรมส่งภาพประกวด
Noppanon YourJust'one
 
ส่งภาพเข้าประกวด
ส่งภาพเข้าประกวดส่งภาพเข้าประกวด
ส่งภาพเข้าประกวด
Noppanon YourJust'one
 
ขั้นตอนการทำ Emoticon อย่างง่าย โดยใช้ flash8
ขั้นตอนการทำ Emoticon อย่างง่าย โดยใช้ flash8ขั้นตอนการทำ Emoticon อย่างง่าย โดยใช้ flash8
ขั้นตอนการทำ Emoticon อย่างง่าย โดยใช้ flash8
Noppanon YourJust'one
 
เทคนิค Flash cs ทำตัวอักษรวิ่งๆ แต่สีตัวอักษรเป็นพื้นรูป background
เทคนิค Flash cs ทำตัวอักษรวิ่งๆ แต่สีตัวอักษรเป็นพื้นรูป backgroundเทคนิค Flash cs ทำตัวอักษรวิ่งๆ แต่สีตัวอักษรเป็นพื้นรูป background
เทคนิค Flash cs ทำตัวอักษรวิ่งๆ แต่สีตัวอักษรเป็นพื้นรูป background
Noppanon YourJust'one
 
ประกวดภาพถ่าย
ประกวดภาพถ่ายประกวดภาพถ่าย
ประกวดภาพถ่าย
Noppanon YourJust'one
 
ภูมิปัญญาท้องถิ่น พิธีกรรมทำขวัญข้าว
ภูมิปัญญาท้องถิ่น พิธีกรรมทำขวัญข้าวภูมิปัญญาท้องถิ่น พิธีกรรมทำขวัญข้าว
ภูมิปัญญาท้องถิ่น พิธีกรรมทำขวัญข้าว
Noppanon YourJust'one
 
ข้อสอบวิเคราะห์
ข้อสอบวิเคราะห์ข้อสอบวิเคราะห์
ข้อสอบวิเคราะห์
Noppanon YourJust'one
 

Más de Noppanon YourJust'one (13)

Line maps for indoor
Line maps for indoorLine maps for indoor
Line maps for indoor
 
ข่าว It
ข่าว Itข่าว It
ข่าว It
 
ส่งภาพประกวด
ส่งภาพประกวดส่งภาพประกวด
ส่งภาพประกวด
 
การนำเข้าไฟล์เสียง
การนำเข้าไฟล์เสียงการนำเข้าไฟล์เสียง
การนำเข้าไฟล์เสียง
 
กิจกรรมส่งภาพประกวด
กิจกรรมส่งภาพประกวดกิจกรรมส่งภาพประกวด
กิจกรรมส่งภาพประกวด
 
ส่งภาพเข้าประกวด
ส่งภาพเข้าประกวดส่งภาพเข้าประกวด
ส่งภาพเข้าประกวด
 
ขั้นตอนการทำ Emoticon อย่างง่าย โดยใช้ flash8
ขั้นตอนการทำ Emoticon อย่างง่าย โดยใช้ flash8ขั้นตอนการทำ Emoticon อย่างง่าย โดยใช้ flash8
ขั้นตอนการทำ Emoticon อย่างง่าย โดยใช้ flash8
 
เทคนิค Flash cs ทำตัวอักษรวิ่งๆ แต่สีตัวอักษรเป็นพื้นรูป background
เทคนิค Flash cs ทำตัวอักษรวิ่งๆ แต่สีตัวอักษรเป็นพื้นรูป backgroundเทคนิค Flash cs ทำตัวอักษรวิ่งๆ แต่สีตัวอักษรเป็นพื้นรูป background
เทคนิค Flash cs ทำตัวอักษรวิ่งๆ แต่สีตัวอักษรเป็นพื้นรูป background
 
ประกวดภาพถ่าย
ประกวดภาพถ่ายประกวดภาพถ่าย
ประกวดภาพถ่าย
 
ภูมิปัญญาท้องถิ่น พิธีกรรมทำขวัญข้าว
ภูมิปัญญาท้องถิ่น พิธีกรรมทำขวัญข้าวภูมิปัญญาท้องถิ่น พิธีกรรมทำขวัญข้าว
ภูมิปัญญาท้องถิ่น พิธีกรรมทำขวัญข้าว
 
ข้อสอบวิเคราะห์
ข้อสอบวิเคราะห์ข้อสอบวิเคราะห์
ข้อสอบวิเคราะห์
 
ภาษา C
ภาษา Cภาษา C
ภาษา C
 
ข่าว It 3
ข่าว It 3ข่าว It 3
ข่าว It 3
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

ภาษา C โปรแกรมย่อยและฟังก์ชันมาตรฐาน

  • 1.
  • 3. C 1 standard functions) 1 mathematic functions) 1 2–5 -8
  • 4. Character functions) 8 String functions) 8 - 10
  • 5. C C C Header file C h standard functions) C header file C h header file #include<header file.h>
  • 6. C compiler ” ” library functions) mathematic functions) #include <math. h> type) double double acos(x) asin(x) atan(x) sin(x) cos(x) tan(x) sqrt(x) exp(x) pow(x,y)
  • 7. log(x) log10(x) ceil(x) floor(x) fabs(x) acos(x) arc cosine x x radian) acos(x); 2) asin(x) arc sine x x asin(x);
  • 8. 3) atan(x) arc tan x x atan(x); sin(x) sine x x sin(x); 5) cos(x) cosine x x
  • 9. cos(x); 6) tan(x) tan x x tan(x); acos(x), asin(x), atan(x), sin(x), cos(x) tan(x) acos(x), asin(x), atan(x), sin(x), cos(x) tan(x)
  • 10. * math1.c */ #include<stdio.h> /* #include<math.h> /* #include<conio.h> /* void main(void) /* { double r, pi = 3.141592654; /* r = pi/180; /*
  • 11. clrscr(); /* printf("%fn",asin(r)); /* printf("%fn",acos(r)); /* printf("%fn",atan(r)); /* printf("%fn",sin(r)); /* printf("%fn",cos(r)); /* printf("%fn",tan(r)); /* printf("nPress any key back to program ..."); /*
  • 13. printf("%fn",asin(r)); arc sin r r printf("%fn",acos(r)); arc cosine r r
  • 14. printf("%fn",atan(r)); arc tan r r printf("%fn",sin(r)); sine r r printf("%fn",cos(r)); cosine r r printf("%fn",tan(r)); tan r r
  • 15. enter sqrt(x) square root) x x sqrt(x); 8) exp(x) ex x e e exp(x);
  • 16. 9) pow(x,y) xy x y pow(x, y); character functions) single char ( byte) #include<ctype.h> isalnum(ch),
  • 17. isalpha(ch), isdigit(ch), islower(ch), isupper(ch), tolower(ch), toupper(ch), isspace(ch), isxdigit(ch) 1.3 string functions) string) #include<string.h> strlen(s), strcmp(s1,s2) , strcpy(s), strcat(s1,s2) 1.4 clrscr( ) text mode gotoxy(x,y) cursor)
  • 18. sizeof(x) x Byte user defined functions) C ” ” ” ” user define functions : UDF) C