Just like int A, int can also be decorated with other modifiers. In addition to the void type, the base data type can be preceded by a variety of type modifiers, such as the following four types of modifiers:1.signed----Signed, can be decorated with
Reprinted from: http://www.94cto.com/index/Article/content/id/59973.html1. Example:Today we are doing a question about the conversion of signed numbers and unsigned numbers to their left/right shifts, and the principle of transformation between them
This article transferred from: http://www.94cto.com/index/Article/content/id/59973.html1. Example:Today we are doing a question about the conversion of signed numbers and unsigned numbers to their left/right shifts, and the principle of
just like int A; int can also be decorated with other modifiers. In addition to the void type, the basic data types can be preceded by various types of modifiers, with the following four types of type modifiers:1.signed----with symbols, can be
Copy codeThe Code is as follows: # include
Int main (int argc, char * argv [])
{
Unsigned int max_int = 0-1;
Printf ("The max value of unsigned int on 32 machine: % u/n", max_int );
}
Copy codeThe Code is as follows: # include Int main (int argc,
Copy Code code as follows:
#include
int main (int argc, char *argv[])
{
unsigned int max_int = 0-1;
printf ("The max value of unsigned int on machine:%u/n", max_int);
}
Copy Code code as follows:
#include
1 int i=3; 2 cout1;ask what the result is. First reaction:-3. But the result does not seem like this, wrote a program, ran a bit, found that:4294967293. 1) on a 32-bit machine, the int and unsigned int are 32 bits (4 bytes). 2) enum will be
In the 32-bit environment, use C to design a 32-bit unsigned long integer summation function that is stored in two 32-bit unsigned integers.
function interface is defined as
void Add64 (unsigned int add1, unsigned int add2, unsigned int* psumhigh,
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.