Biology Forums - Study Force

Science-Related Homework Help Computer Studies Topic started by: DePeet on Apr 30, 2018



Title: If x is a char and values is an int array, then values[x]a.causes a syntax errorb.causes an ...
Post by: DePeet on Apr 30, 2018
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


Title: Re: If x is a char and values is an int array, then values[x]a.causes a syntax errorb.causes an ...
Post by: Stinger on Apr 30, 2018
Content hidden