Type casting and type conversions

Reply

Join Date: Oct 2004
Posts: 47
Reputation: aminura is an unknown quantity at this point 
Solved Threads: 0
aminura aminura is offline Offline
Light Poster

Type casting and type conversions

 
0
  #1
Oct 27th, 2005
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...
Life is not a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming --WOW -- " What a ride!!! " -James Fineous McBride
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,567
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 706
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Type casting and type conversions

 
1
  #2
Oct 27th, 2005
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.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 47
Reputation: aminura is an unknown quantity at this point 
Solved Threads: 0
aminura aminura is offline Offline
Light Poster

Re: Type casting and type conversions

 
0
  #3
Oct 27th, 2005
ok..Thanks
Life is not a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming --WOW -- " What a ride!!! " -James Fineous McBride
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 47
Reputation: aminura is an unknown quantity at this point 
Solved Threads: 0
aminura aminura is offline Offline
Light Poster

Re: Type casting and type conversions

 
0
  #4
Oct 27th, 2005
ok..Thanks!
Life is not a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming --WOW -- " What a ride!!! " -James Fineous McBride
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC