Is it mandatory to pass input parameters for all the user defined functions?
We know, Stored procedure has both input and output parameters. Function has only input parameters.
We can write a stored procedure without using these parameters too.. Is it possible to write the user defined function without input parameter?
Yes you can definitely write User defined function without parameter.
One more thing I want to clarify that function may have input parameter and it has return value. Return value would be scalar or table depend on type of function you are creation.