Can I return different types other than void and int? Maybe char, string, float, double etc?
yes! every data type can return from a function but only one data can returned
sari hossin74 اهل ایران ;)
yeah basically we use that data type in which we want our function should return . like if u r returning a value of type char , then u should use char as return type data.
سلام مهدی کجایی هستی
Yes, you can.
Yes you can return char,double,float.
of course you can