Saved Bookmarks
| 1. |
Explain which, if any, of the following lines would result in a compiler error:int x = 75.5;double y = 75; |
|
Answer» ANSWER: int x =75.5; will cause a compiler error. You cannot make an int VARIABLE reference a double value. In the first LINE, 75.5 is a double value that you WANT to store as int which would result in a compiler error. |
|