Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 3
Can I return different types other than void and int? Maybe char, string, float, double etc?
7 Respostas
+ 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