Skip to content

Types of Function

Built-in Function

These are predefined functions provided by the programming language or libraries. Examples include print() in Python, Math.random() in JavaScript, or strlen() in C. They serve general purposes and are readily available for use. More about Built-in Function.

User-defined Function

Functions created by the programmer to perform specific tasks. They encapsulate reusable blocks of code, enhancing code organization and readability. More about User-defined Function.