Type casting vs type conversion

Hello.

I’ve been making flashcards of programming terms and I recently ran into a confusion.
I thought Type Casting and Type Converting where synonyms, but upon research I found that they are technically not the same.

Could someone explain to me what is the difference between the two please?
And if possible, if when I refer to a variable having its type changed I refer to it as Implicit/Explicit converting or casting?

Thank you.

Conversion is implicit because you assign a value to another type. Casting is explicit because you tell him which type you want.

You have more details here:

Don’t hesitate if you have more questions!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms