Mistake in code

since return type is void how can we return anything

hello @user_mukul258

void me we dont returning any value.

here in the code we using return to go back to calling function i.e return the control back to calling function and since we are not returning any value to calling function we have made it void.

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.