Programming with C

⌘K
  1. Home
  2. Docs
  3. Programming with C
  4. Functions and Pointers
  5. Built-in functions

Built-in functions

Built-in functions (string functions, math functions)

Library Functions or pre-defined functions are the functions whose functionality has already been developed  by someone and are available to the user for use.

Example

printf and scanf

Two aspects of working with library functions:

  • Declaration of library function
  • Use of library function

Declaration of library function

  • A library function needs to be declared before it is called
  • The declaration of library functions are available in respective header files
  • To makes these declarations accessible in a program file, the corresponding header files are included

Use of Library Functions

Library functions are used in the same way as user defined functions, i.e. by using a function call operator

Some of the common library functions are listed as:

  • Library of mathematical functions
  • Library of standard input / output functions
  • Library of string processing functions

Library of mathematical functions

Library of string functions

Views: 0

Articles

How can we help?

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments