SlideShare a Scribd company logo
Presented by:
Zarafshan 018
Kinza 020
Yousra 014
 A type of function that is available as apart of
language is known as built-in function/library
function.
 These functions are ready made programs.
 Built-in function make programming faster
and easier.
 Different built-in function are defined in
different header files.
 The fmod function is used to find remainder
by dividing two floating point values.
Syntax
fmod(x , y)
 #include<iostream>
 #include<math.h>
 int main()
 {
 double a,b,r;
 cout<<"enter first double value ";
 cin>>a;
 cout<<"enter 2nd double value ";
 cin>>b;
 r=fmod(a,b);
 cout<<"the result of fmod()="<<r;
 }
 The gotoxy() is used to move the cursor to a
specified location on the screen.
 It moves the cursor with respect to x-axis
 And y-axis.
 It is very useful when the output is to be
displayed at a specific location on the screen.
 Syntax
 gotoxy(x , y)
 #include<iostream>
 #include<conio.h>
 int main()
 {
 gotoxy(0,0);
 cout<<"pakistan zindabad";
 gotoxy(1,50);
 cout<<"pakistan zindabad";
 getch();
 }
 The word ‘putchar’ stands for put character.
 The function is used to display single
character on the screen.
Syntax
Putchar(ch);
The parameter ch is the variable or constant whose
value is to be displayed on screen.
 #include<iostream>
 #include<stdio.h>
 int main()
 {
 char ch;
 cout<<"enter a character ";
 cin>>ch;
 putchar(ch)
 putchar('*');
 }
 Strlen stand for string length.
 This function is used to find the length of a
string.Its counts the total number of charater
including spaces.
 Null character is excluded.
 “String.h”header file contains the function
that are used to process strings.
 Syntax:
 int strlen(string);
 #include<iostream.h>
 #include<string.h>
 Int main()
 {
 Char str[100];
 Puts(“enter any string?”);
 Gets(str);
 Cout<<“length of string is=“<<strlen(str);
 }

More Related Content

PPTX
Dynamic Objects,Pointer to function,Array & Pointer,Character String Processing
PPTX
Introduction to c++
PDF
Web app development_php_06
PDF
Chapter 7 - Input Output Statements in C++
PDF
C++ and OOPS Crash Course by ACM DBIT | Grejo Joby
PPTX
Introduction to C++
PPTX
Mercury: A Functional Review
PPT
cpp input & output system basics
Dynamic Objects,Pointer to function,Array & Pointer,Character String Processing
Introduction to c++
Web app development_php_06
Chapter 7 - Input Output Statements in C++
C++ and OOPS Crash Course by ACM DBIT | Grejo Joby
Introduction to C++
Mercury: A Functional Review
cpp input & output system basics

What's hot (20)

DOCX
Diff between c and c++
PPTX
Unit 1 of c++ first program
PPTX
functions in C
DOC
Labsheet_3
PDF
ODP
C workshop day 7
PPT
Lecture05
PDF
PDF
Functions
PPT
4 Type conversion functions
PPT
Lecture 3 c++
DOC
Computer hw1
PPT
C++ Overview
PPTX
String .h
PPTX
C++ language basic
PPTX
C introduction by thooyavan
PPS
Aae oop xp_06
PDF
C++ book
PPTX
expression in cpp
PPTX
Lex programming
Diff between c and c++
Unit 1 of c++ first program
functions in C
Labsheet_3
C workshop day 7
Lecture05
Functions
4 Type conversion functions
Lecture 3 c++
Computer hw1
C++ Overview
String .h
C++ language basic
C introduction by thooyavan
Aae oop xp_06
C++ book
expression in cpp
Lex programming

Similar to built in function (20)

PPTX
Learn Function The Hard Way
PPT
Lecture#6 functions in c++
PPT
Functions123
PPT
Functions12
PPT
User defined functions
PPT
Part 3-functions
PPT
Fp201 unit5 1
PPTX
Chp7_C++_Functions_Part1_Built-in functions.pptx
PDF
Programming fundamentals using c++ question paper 2014 tutorialsduniya
PPTX
CPP06 - Functions
PPTX
Library functions in c++
PPTX
Learn c++ (functions) with nauman ur rehman
PDF
(3) cpp procedural programming
PPTX
Functions & Recursion
PPTX
C++ Functions | Introduction to programming
DOCX
Functions assignment
PPTX
OOP WITH C++-ppt Slide show unitwise NOTES
PDF
Functionssssssssssssssssssssssssssss.pdf
PDF
C standard library functions
Learn Function The Hard Way
Lecture#6 functions in c++
Functions123
Functions12
User defined functions
Part 3-functions
Fp201 unit5 1
Chp7_C++_Functions_Part1_Built-in functions.pptx
Programming fundamentals using c++ question paper 2014 tutorialsduniya
CPP06 - Functions
Library functions in c++
Learn c++ (functions) with nauman ur rehman
(3) cpp procedural programming
Functions & Recursion
C++ Functions | Introduction to programming
Functions assignment
OOP WITH C++-ppt Slide show unitwise NOTES
Functionssssssssssssssssssssssssssss.pdf
C standard library functions

Recently uploaded (20)

PDF
Complications of Minimal Access Surgery at WLH
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Updated Idioms and Phrasal Verbs in English subject
PDF
Classroom Observation Tools for Teachers
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PPTX
master seminar digital applications in india
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
RMMM.pdf make it easy to upload and study
Complications of Minimal Access Surgery at WLH
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
Final Presentation General Medicine 03-08-2024.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Chinmaya Tiranga quiz Grand Finale.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Anesthesia in Laparoscopic Surgery in India
2.FourierTransform-ShortQuestionswithAnswers.pdf
Weekly quiz Compilation Jan -July 25.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Updated Idioms and Phrasal Verbs in English subject
Classroom Observation Tools for Teachers
LDMMIA Reiki Yoga Finals Review Spring Summer
master seminar digital applications in india
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
RMMM.pdf make it easy to upload and study

built in function

  • 2.  A type of function that is available as apart of language is known as built-in function/library function.  These functions are ready made programs.  Built-in function make programming faster and easier.  Different built-in function are defined in different header files.
  • 3.  The fmod function is used to find remainder by dividing two floating point values. Syntax fmod(x , y)
  • 4.  #include<iostream>  #include<math.h>  int main()  {  double a,b,r;  cout<<"enter first double value ";  cin>>a;  cout<<"enter 2nd double value ";  cin>>b;  r=fmod(a,b);  cout<<"the result of fmod()="<<r;  }
  • 5.  The gotoxy() is used to move the cursor to a specified location on the screen.  It moves the cursor with respect to x-axis  And y-axis.  It is very useful when the output is to be displayed at a specific location on the screen.  Syntax  gotoxy(x , y)
  • 6.  #include<iostream>  #include<conio.h>  int main()  {  gotoxy(0,0);  cout<<"pakistan zindabad";  gotoxy(1,50);  cout<<"pakistan zindabad";  getch();  }
  • 7.  The word ‘putchar’ stands for put character.  The function is used to display single character on the screen. Syntax Putchar(ch); The parameter ch is the variable or constant whose value is to be displayed on screen.
  • 8.  #include<iostream>  #include<stdio.h>  int main()  {  char ch;  cout<<"enter a character ";  cin>>ch;  putchar(ch)  putchar('*');  }
  • 9.  Strlen stand for string length.  This function is used to find the length of a string.Its counts the total number of charater including spaces.  Null character is excluded.  “String.h”header file contains the function that are used to process strings.  Syntax:  int strlen(string);
  • 10.  #include<iostream.h>  #include<string.h>  Int main()  {  Char str[100];  Puts(“enter any string?”);  Gets(str);  Cout<<“length of string is=“<<strlen(str);  }

Editor's Notes

  • #7: Note: The above example displays “Pakistan zindabad” on the top and bottom of the screen.