Predefined func ons LINK-: h ps://www.w3schools.com/c/c_ref_math.
php
Predefined func ons in C, also known as built-in func ons or standard library func ons, are
func ons that are already provided by the C programming language itself or by standard
libraries.
We include the math.h library to access mathema cal func ons like sqrt(), abs(), pow(),
ceil(), and floor().
Here are some common categories of predefined func ons in C:
Input/Output Func ons:
prin (): Used to print forma ed output to the console.
scanf(): Used to read forma ed input from the console.
Mathema cal Func ons:
sqrt(): Calculates the square root of a number.
abs(): Calculates the absolute value of a number.
pow(): Calculates the power of a number.
fmax(): returns the number with the highest value from a pair of numbers.
fmin(): return the number with the lowest value.
ceil(), floor(): Round a number to the nearest integer.
Memory operators:
malloc(): Allocate memory dynamically.
free(): Deallocate memory.
Time Func ons:
me(¤t_ me): Get the current me as a me_t value.
local me(): Convert the me_t value to a struct tm.
str ime(): Format the struct tm into a string.
di ime(): Calculate the difference between two mes.
File Handling Func ons:
fopen(), fclose(): Open and close files.
fread(), fwrite(): Read and write data from/to files.