DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C (http://www.daniweb.com/forums/forum118.html)
-   -   Type casting and type conversions (http://www.daniweb.com/forums/thread34550.html)

aminura Oct 27th, 2005 8:28 am
Type casting and type conversions
 
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... :?:

Narue Oct 27th, 2005 9:36 am
Re: Type casting and type conversions
 
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.

aminura Oct 27th, 2005 10:30 am
Re: Type casting and type conversions
 
ok..Thanks

aminura Oct 27th, 2005 10:31 am
Re: Type casting and type conversions
 
ok..Thanks!


All times are GMT -4. The time now is 7:18 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC