Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

represents the code value of the char. How?

char code represents value
0
Posted

represents the code value of the char. How?

0

[*] Like this. char c = ‘A’; int i = c; Going the other way is just c = (char) i; This question crops up so frequently because the BASIC language uses functions to map characters into ints, ASC( ‘A’ ) => 65 causing BASIC programmers to seek the corresponding Java functions. The same is true for Pascal, Ada, and other languages.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123