Generally when developing an application or a logic we need to write a function. There is always chance that you can write either as void function with no arguments or something with function arguments and return values. Which one should i prefer? It is like i need to do lot analysis and come to some conclusion and then actually decide the function prototype. Am I correct? Please advise. Is there any industry standards?