Fuctions calling and returning

Can we write return 0; instead of return; in void(where we do not have to return anything)

If No then why??

Hello @kaustub you cannot write return 0 in void .
this is because void means null it should no return anything,whereas when we declare the fiunction as int it means it expects some integere value in return.
and when we declare the function as of type string then it means that it is of the type string and it expects some string value in return.
Happy Learning!!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.