+ 1

What is implicit conversation?

1st Jul 2020, 2:40 AM
Chikkala Mohan
Chikkala Mohan - avatar
4 Réponses
0
Implicit type conversion? If you first assign an integer value and later a string value e.g.
1st Jul 2020, 2:42 AM
Sandra Meyer
Sandra Meyer - avatar
+ 1
Thanks
1st Jul 2020, 2:44 AM
Chikkala Mohan
Chikkala Mohan - avatar
+ 1
Suppose, c = a + b; | | Int long | | ---------+---------- | long //result The result automatically gets converted to their highest data type. I hope u got me bro....!!☺☺
1st Jul 2020, 1:29 PM
Arya Deep Chowdhury
Arya Deep Chowdhury - avatar
0
Oh and can appear within a single assignment like number = 1 + 1.0 will result in a double.
1st Jul 2020, 2:50 AM
Sandra Meyer
Sandra Meyer - avatar