Original URL: http://www.xuebuyuan.com/988752.htmlThe conversion of Java byte to other data types is mainly used for encoding and decoding binary data, mainly for network transmission, reading and writing binary files, data communication between
Original link
#include
#include
#include
Using namespace std;
int main ()
{
cout "type: \t\t" "************size**************"
cout "bool: \t\t" "occupied bytes:" sizeof (bool);
cout "\ t max:" Bool>::max) ();
cout
The Int, Char, long, float, and double types of Java are converted to bytes.
16:53:40
Add to favorites I want to contribute
[Font: small and big]
Java codePackage com. util; /**** * file name: COM. Born. util. byteutil.
In the C language, the number of bytes for a double, long, unsigned, int, char type datahttp://blog.csdn.net/lyl0625/article/details/7350045============================I can't remember, put it down:is related to the machine word length and
First, analyze the characteristics of the basic data type, maximum and minimum values. 1, Basic type: int bits number: + Wrapper class: Java.lang.Integer Minimum: integer.min_value=-2147483648 (-2 of 31 Parties) Maximum value: integer.max_value=
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.