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... :?:

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.

Be a part of the DaniWeb community

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