Greetings Sir/Mam,
I’ve a doubt regarding defining a function type, i’ve gone through the videos related to this query several times but unfortunately i’m getting confused in deciding whether the function should return nothing (void) or a value based upon defined datatype, I know that void is used when we don’t want function to return any value, but i’m unable to decide whether my defined function should return a value or not
Can you please brief me some points about when should we use return type void or some value??