SlideShare a Scribd company logo
3
Most read
7
Most read
8
Most read
WELCOME TO YOUR
PRESENTATION
Topic Name : Built in Function
PRESENTED BY
GroupMember ID
Tania Akter 0111-61-035
MD. Rayhanul Islam 0111-61-036
Saddam Hossain 0111-61-037
FUNCTION :
 A function is a group of statements that together perform
a task.
 A function is a block of code that performs a calculation
and returns a value.
 Every C program has at least one function, which
is main()
CLASSIFICATION OF FUNCTION :
User define
function
Library function
or Built-in function
Function
WHAT IS LIBRARY FUNCTION OR
BUILT-IN FUNCTION??
 Built in functions are the functions that are provided by
C library.
 These functions perform file access, mathematical
computations, graphics, memory management etc.
 Defined in a special header file.
 A function that is built into an application and can be
accessed by end-users.
BUILT-IN FUCTION HEADER FILES:
<stdio.h> : Standard input/output.
<conio.h> : This is console input/output header file.
<string.h> : All string related functions are defined in
this header file.
<math.h> : All maths related functions are defined
in this header file
<time.h> : Time and clock related functions
<STDIO.H> LIBRARY FUNCTIONS SOURCE CODE :
printf() : This function is used to print the character,
string, float, integer, octal and hexadecimal values onto
the output screen.
scanf() : This function is used to read a character,
string, numeric data from keyboard.
getc() : It reads character from file
gets() : It reads line from keyboard
getchar() : It reads character from keyboard
putchar() : It writes a character to screen
getw() : reads an integer from file
putw() : writes an integer to file
fgetc() : reads a character from file
putc() : writes a character to file
feof() : finds end of file
fprintf() : writes formatted data to a file
fscanf(): reads formatted data from a file
fgetchar : reads a character from keyboard
Fputchar : writes a character from keyboard
<CONIO.H> LBRARY FUNCTIONS SOURCE CODE :
clrscr() : This function is used to clear the output
screen.
getch() : It reads character from keyboard
textcolor() : This function is used to change the
text color
textbackground() : This function is used to
change text background
<STRING.H> LIBRARY FUNCTIONS SOURCE CODE:
strcat(str1, str2) : Concatenates str2 at the end of str1.
strcpy(str1, str2) : Copies str2 into str1
strlen(strl) : gives the length of str1.
strcmp(str1, str2) : Returns 0 if str1 is same as
str2. Returns <0 if strl < str2. Returns >0 if str1 > str2.
strdup() : duplicates the string
strlwr() : converts string to lowercase
<MATH.H> LIBRARY FUNCTIONS SOURCE CODE :
sin( ) : This function is used to calculate sine value.
cos( ) : This function is used to calculate cosine.
tan( ) : This function is used to calculate tangent.
log( ) : This function is used to calculates natural
logarithm.
pow( ) : This is used to find the power of the given
number.
<TIME.H> LIBRARY FUNCTIONS SOURCE CODE :
setdate() : This function used to modify the system date
getdate() : This function is used to get the CPU time
clock() : This function is used to get current system time
time() : This function is used to get current system time
as structure
difftime() : This function is used to get the difference
between two given times
ADVANTAGES :
 It helps in making the code very simple and much
more easier to handle.
 A function may be used by many other programs.
 You can use it over and over without retyping the
code
 Less code for more
 Helps organize your code
DISADVANTAGES:
 I think functions are sometimes difficult to handle
and can confuse the programmer in handling
different tasks.
PROGRAMING IN BUILT-IN FUNCTION :
#include<stdio.h>
main()
{
printf ("Welcome To Your Presentation");
}
Sample Output :
THANK YOU

More Related Content

What's hot (20)

PPTX
Functions in python slide share
Devashish Kumar
 
PPTX
Conditional and control statement
narmadhakin
 
PPSX
python Function
Ronak Rathi
 
PPTX
Functions in python
colorsof
 
PPTX
Recursion
Abdur Rehman
 
PPTX
C functions
University of Potsdam
 
PPTX
User defined functions in C
Harendra Singh
 
PDF
Python functions
Prof. Dr. K. Adisesha
 
PPTX
Python Functions
Mohammed Sikander
 
PPTX
Abstract Data Types
karthikeyanC40
 
PPTX
Functions in C
Kamal Acharya
 
PDF
Python recursion
Prof. Dr. K. Adisesha
 
PPTX
Chapter 03 python libraries
Praveen M Jigajinni
 
PPTX
Function in C program
Nurul Zakiah Zamri Tan
 
PDF
Arrays in python
moazamali28
 
PPT
Pointers C programming
Appili Vamsi Krishna
 
PDF
Operators in python
Prabhakaran V M
 
PPTX
Pointers in c++
Vineeta Garg
 
PPTX
Array Introduction One-dimensional array Multidimensional array
imtiazalijoono
 
PDF
Python list
Mohammed Sikander
 
Functions in python slide share
Devashish Kumar
 
Conditional and control statement
narmadhakin
 
python Function
Ronak Rathi
 
Functions in python
colorsof
 
Recursion
Abdur Rehman
 
User defined functions in C
Harendra Singh
 
Python functions
Prof. Dr. K. Adisesha
 
Python Functions
Mohammed Sikander
 
Abstract Data Types
karthikeyanC40
 
Functions in C
Kamal Acharya
 
Python recursion
Prof. Dr. K. Adisesha
 
Chapter 03 python libraries
Praveen M Jigajinni
 
Function in C program
Nurul Zakiah Zamri Tan
 
Arrays in python
moazamali28
 
Pointers C programming
Appili Vamsi Krishna
 
Operators in python
Prabhakaran V M
 
Pointers in c++
Vineeta Garg
 
Array Introduction One-dimensional array Multidimensional array
imtiazalijoono
 
Python list
Mohammed Sikander
 

Similar to Built in function (20)

PDF
Function lecture
DIT University, Dehradun
 
PDF
0-Slot14-15-16-Libraries.pdf
ssusere19c741
 
PPT
Functions and pointers_unit_4
MKalpanaDevi
 
PDF
Functions
Learn By Watch
 
PPT
Functions and pointers_unit_4
Saranya saran
 
PDF
C standard library functions
Vaishnavee Sharma
 
PDF
Programming Fundamentals Functions in C and types
imtiazalijoono
 
PPTX
Header file.pptx
ALANWALKERPIANO
 
PPT
11 functions
Rohit Shrivastava
 
PPTX
Introduction to C Unit 1
Dr. SURBHI SAROHA
 
PPTX
C language
Robo India
 
PPTX
Unit-III.pptx
Mehul Desai
 
PPTX
Functions
PralhadKhanal1
 
PPT
Fucntions & Pointers in C
Janani Satheshkumar
 
PDF
Preprocessor directives
Vikash Dhal
 
PPS
C programming session 01
Dushmanta Nath
 
PPTX
unit 1 cpds.pptx
madhurij54
 
PPTX
Unit_5Functionspptx__2022_12_27_10_47_17 (1).pptx
vekariyakashyap
 
PDF
4th unit full
Murali Saktheeswaran
 
PPTX
C-Programming C LIBRARIES AND USER DEFINED LIBRARIES.pptx
SKUP1
 
Function lecture
DIT University, Dehradun
 
0-Slot14-15-16-Libraries.pdf
ssusere19c741
 
Functions and pointers_unit_4
MKalpanaDevi
 
Functions
Learn By Watch
 
Functions and pointers_unit_4
Saranya saran
 
C standard library functions
Vaishnavee Sharma
 
Programming Fundamentals Functions in C and types
imtiazalijoono
 
Header file.pptx
ALANWALKERPIANO
 
11 functions
Rohit Shrivastava
 
Introduction to C Unit 1
Dr. SURBHI SAROHA
 
C language
Robo India
 
Unit-III.pptx
Mehul Desai
 
Functions
PralhadKhanal1
 
Fucntions & Pointers in C
Janani Satheshkumar
 
Preprocessor directives
Vikash Dhal
 
C programming session 01
Dushmanta Nath
 
unit 1 cpds.pptx
madhurij54
 
Unit_5Functionspptx__2022_12_27_10_47_17 (1).pptx
vekariyakashyap
 
4th unit full
Murali Saktheeswaran
 
C-Programming C LIBRARIES AND USER DEFINED LIBRARIES.pptx
SKUP1
 
Ad

Recently uploaded (20)

PDF
Digital water marking system project report
Kamal Acharya
 
PPTX
Distribution reservoir and service storage pptx
dhanashree78
 
PPTX
Knowledge Representation : Semantic Networks
Amity University, Patna
 
PPTX
Water Resources Engineering (CVE 728)--Slide 3.pptx
mohammedado3
 
PPTX
Final Major project a b c d e f g h i j k l m
bharathpsnab
 
PPTX
OCS353 DATA SCIENCE FUNDAMENTALS- Unit 1 Introduction to Data Science
A R SIVANESH M.E., (Ph.D)
 
PDF
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
PPT
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
PPT
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
PDF
Data structures notes for unit 2 in computer science.pdf
sshubhamsingh265
 
PPTX
Water Resources Engineering (CVE 728)--Slide 4.pptx
mohammedado3
 
PDF
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
PPT
Testing and final inspection of a solar PV system
MuhammadSanni2
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PPTX
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
PPTX
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
How Industrial Project Management Differs From Construction.pptx
jamespit799
 
PDF
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
Digital water marking system project report
Kamal Acharya
 
Distribution reservoir and service storage pptx
dhanashree78
 
Knowledge Representation : Semantic Networks
Amity University, Patna
 
Water Resources Engineering (CVE 728)--Slide 3.pptx
mohammedado3
 
Final Major project a b c d e f g h i j k l m
bharathpsnab
 
OCS353 DATA SCIENCE FUNDAMENTALS- Unit 1 Introduction to Data Science
A R SIVANESH M.E., (Ph.D)
 
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
Data structures notes for unit 2 in computer science.pdf
sshubhamsingh265
 
Water Resources Engineering (CVE 728)--Slide 4.pptx
mohammedado3
 
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
Testing and final inspection of a solar PV system
MuhammadSanni2
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
How Industrial Project Management Differs From Construction.pptx
jamespit799
 
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
Ad

Built in function

  • 1. WELCOME TO YOUR PRESENTATION Topic Name : Built in Function
  • 2. PRESENTED BY GroupMember ID Tania Akter 0111-61-035 MD. Rayhanul Islam 0111-61-036 Saddam Hossain 0111-61-037
  • 3. FUNCTION :  A function is a group of statements that together perform a task.  A function is a block of code that performs a calculation and returns a value.  Every C program has at least one function, which is main()
  • 4. CLASSIFICATION OF FUNCTION : User define function Library function or Built-in function Function
  • 5. WHAT IS LIBRARY FUNCTION OR BUILT-IN FUNCTION??  Built in functions are the functions that are provided by C library.  These functions perform file access, mathematical computations, graphics, memory management etc.  Defined in a special header file.  A function that is built into an application and can be accessed by end-users.
  • 6. BUILT-IN FUCTION HEADER FILES: <stdio.h> : Standard input/output. <conio.h> : This is console input/output header file. <string.h> : All string related functions are defined in this header file. <math.h> : All maths related functions are defined in this header file <time.h> : Time and clock related functions
  • 7. <STDIO.H> LIBRARY FUNCTIONS SOURCE CODE : printf() : This function is used to print the character, string, float, integer, octal and hexadecimal values onto the output screen. scanf() : This function is used to read a character, string, numeric data from keyboard. getc() : It reads character from file gets() : It reads line from keyboard getchar() : It reads character from keyboard putchar() : It writes a character to screen
  • 8. getw() : reads an integer from file putw() : writes an integer to file fgetc() : reads a character from file putc() : writes a character to file feof() : finds end of file fprintf() : writes formatted data to a file fscanf(): reads formatted data from a file fgetchar : reads a character from keyboard Fputchar : writes a character from keyboard
  • 9. <CONIO.H> LBRARY FUNCTIONS SOURCE CODE : clrscr() : This function is used to clear the output screen. getch() : It reads character from keyboard textcolor() : This function is used to change the text color textbackground() : This function is used to change text background
  • 10. <STRING.H> LIBRARY FUNCTIONS SOURCE CODE: strcat(str1, str2) : Concatenates str2 at the end of str1. strcpy(str1, str2) : Copies str2 into str1 strlen(strl) : gives the length of str1. strcmp(str1, str2) : Returns 0 if str1 is same as str2. Returns <0 if strl < str2. Returns >0 if str1 > str2. strdup() : duplicates the string strlwr() : converts string to lowercase
  • 11. <MATH.H> LIBRARY FUNCTIONS SOURCE CODE : sin( ) : This function is used to calculate sine value. cos( ) : This function is used to calculate cosine. tan( ) : This function is used to calculate tangent. log( ) : This function is used to calculates natural logarithm. pow( ) : This is used to find the power of the given number.
  • 12. <TIME.H> LIBRARY FUNCTIONS SOURCE CODE : setdate() : This function used to modify the system date getdate() : This function is used to get the CPU time clock() : This function is used to get current system time time() : This function is used to get current system time as structure difftime() : This function is used to get the difference between two given times
  • 13. ADVANTAGES :  It helps in making the code very simple and much more easier to handle.  A function may be used by many other programs.  You can use it over and over without retyping the code  Less code for more  Helps organize your code
  • 14. DISADVANTAGES:  I think functions are sometimes difficult to handle and can confuse the programmer in handling different tasks.
  • 15. PROGRAMING IN BUILT-IN FUNCTION : #include<stdio.h> main() { printf ("Welcome To Your Presentation"); } Sample Output :