Skip to main content
deleted 113 characters in body
Source Link
user719662
user719662

When adding 'a' + 'b' it produces 195.

I asked on StackOverflow IRC channel they say Is the output datatype is char. I think it is int and some others do as well.

What is the correct answerchar or int?

When adding 'a' + 'b' it produces 195.

I asked on StackOverflow IRC channel they say the output datatype is char. I think it is int and some others do as well.

What is the correct answer?

When adding 'a' + 'b' it produces 195. Is the output datatype char or int?

edited tags; edited title
Link
templatetypedef
  • 376.2k
  • 113
  • 955
  • 1.1k

Addition In Java, is the result of the addition of two chars producesan int or a char?

Source Link
orange
  • 5.4k
  • 13
  • 55
  • 74

Addition of two chars produces int or char

When adding 'a' + 'b' it produces 195.

I asked on StackOverflow IRC channel they say the output datatype is char. I think it is int and some others do as well.

What is the correct answer?