Welcome Guest | Sign in | Register
Typecasting - Discussion Page For Q.10483 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Typecasting > Questions and Answers

Exercise:

Section 1

Q: Why can typecasting be dangerous?
A. Some conversions are not defined, such as char to int. B. You might permanently change the value of the variable.
C. You might temporarily lose part of the data - such as truncating a float when typecasting to an int. D. There are no dangers.

Answer and Explanation

Answer:You might temporarily lose part of the data - such as truncating a float when typecasting to an int.

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.