There are four types of user-defined functions divided on the basis of arguments they accept and the value they return: Function with no arguments and no return value. Function with no arguments and a return value.