"If the main() function does not have any value then how come we can compile and see the output like ""hello world"" since it does not return anything?"
How can I return the value from a function that is triggered by an event?