Today I had an exam and in that there was a question to differentiate between type casting and type conversions...Are they actually different?? I always thought they were same... :?:

Recommended Answers

All 3 Replies

A type cast causes a type conversion, so conversion is the effect and casting is the cause. They're not the same thing because you can have conversions without a cast if an implicit conversion is allowed.

ok..Thanks

ok..Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.