User-defined function | Library function |
User-defined functions are those functions that are written by the user to solve some specific problems. | A library function, also called built-in functions are the functions available in the Qbasic library and already have predefined tasks. |
A user-defined function can be used for different purposes by different users in a program. | A library function remains the same for all users and for all programs. |