× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
z
4
n
4
t
4
k
3
x
3
r
3
m
3
j
3
c
3
l
3
e
3
s
2
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 46 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
Brilliant
wrote...

Yesterday
Correct Slight Smile TY
wrote...

2 hours ago
Thanks
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  549 People Browsing
Related Images
  
 466
  
 91
  
 1041
Your Opinion
Do you believe in global warming?
Votes: 488