I'm just a beginner at C++ programming. I am currently having hard time grasping the usage of value returning function and non-value returning function. Void functions are called non-value returning function but they can return value if we assign certain parameters, compute the parameters and call them in the main function. So, doesn't this defeat the purpose? I feel like I am getting this wrong, so some explanation here would be great!
Also, I see that void functions are easier to use, since I don't need to use " cout<< 'the void function' << endl; " It seems easier and the value-returning function seems useless. I need explanation here as well as to why we need value-returning function.
Please bear with my questions and I am always ready to learn!