+ 3
Can I return different types other than void and int? Maybe char, string, float, double etc?
7 Answers
+ 4
yes!
every data type can return from a function
but
only one data can returned
+ 3
sari hossin74
اهل ایران ;)
+ 1
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.
+ 1
سلام مهدی کجایی هستی
0
Yes, you can.
0
Yes you can return char,double,float.
0
of course you can