× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
j
4
m
4
4
4
n
3
m
3
R
3
V
3
e
3
w
3
j
3
a
3
New Topic  
DePeet DePeet
wrote...
Posts: 338
Rep: 0 0
6 years ago
If x is a char and values is an int array, then values
a.   causes a syntax error
b.   causes an Exception to be thrown
c.   casts x as an int based on x's position in the alphabet (that is, if x is an 'a' it uses 0 and if x is a 'z' it uses 25)
d.   casts x as an int based on x's ASCII value (that is, if x is an 'a' it uses 97 and if x is a 'z' it uses 122)
e.   casts x as an int based on the digit that is stored in x (that is, if x is a '3' it uses 3) but throws an Exception if x does not store a digit
Read 45 times
1 Reply
Replies
Answer verified by a subject expert
StingerStinger
wrote...
Posts: 310
Rep: 4 0
6 years ago
Sign in or Sign up in seconds to unlock everything for free
1

Related Topics

DePeet Author
wrote...

6 years ago
Thank you, thank you, thank you!
wrote...

Yesterday
Thanks
wrote...

2 hours ago
Helped a lot
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1186 People Browsing
Related Images
  
 453
  
 459
  
 340
Your Opinion
Which industry do you think artificial intelligence (AI) will impact the most?
Votes: 405