A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Programmer Certification (SCJP/OCPJP)
integer/numeric value of char
Joined: Oct 13, 2000
Mar 18, 2001 07:55:00
What exactly is meant by 1. integer value 2. numeric value of a char literal???
Thanks in advance
Joined: Sep 29, 2000
Mar 18, 2001 08:50:00
A member of the set of positive whole numbers (1, 2, 3, . . .), negative whole numbers (-1, -2, -3, . . .), and zero (0).
A character can hold alphabetic values as well as integer values. So if we have:
char c = '9';
the character could be alpha OR numberic. The numeric value of this character literal is the integer 9.
"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: integer/numeric value of char
char primitive default value
assignment for char
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014