is this the only way to do type casting ?
( line 21 )
Doubt on type casring
hello @prerak_semwal
the function return type is char so no neecd to do any explicit casting.
compiler will handel on its own
but in general whenever i need type casting I shall do
int(char_variable) or char(integer_variable) or string(int_variable) etc…
yeah …for explicit conversion you have to do like this
use to_string(integer data); to convert integer data into string
1 Like
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.