What is the advantage of C++ supporting native unsigned integers, while java does not? -
according https://en.wikipedia.org/wiki/comparison_of_java_and_c%2b%2b c++ supports unsigned integers while java not, advantages of that?
a major difference c , c++ used low-level programming bits shifted , masked; unsigned integer behaves naturally there.
and c++ there c compatibility. when c conceived larger value range may have been reason too, when ints 16 bit.
a minor point (for c) may efficiency 1 wanted support unsigned chars on architectures architecture default, , there expand concept of unsigned integer types in order orthogonal; although find argument weak.
Comments
Post a Comment