The function which is written by the programmer as per his/her requirements is known as user-defined function.