some basic points about user-defined functions
1: Someone was saying that in a return type user-defined function (which returns a value) one has to have same data type of return value as the declared type of arguments. I think this is absolutely wrong. Because you could have different data types for arguments, further you could have totally different data type for return value. For example,
is completely valid function in my view. Please confirm this for me. Thanks.
bool func(int dummya, float dummyb, long dummyc)
2: Other point that someone was making about, I think, functions which don't take arguments. Perhaps, he was saying that in such functions you can cout and cin operators, but this is not possible for functions which take arguments. Perhaps, you could make some sense out of it! Please let me know what point was being made if you understand it. Thank you.