& What is the operator ()

Source: Internet
Author: User

& Represents two types of operators, one of which represents the value operator, and the other is the bitwise AND value operator int A = 1; int * P = &; // & A indicates that the address in a is obtained and then assigned to the pointer variable, that is, & A indicates the address in memory of variable. You can use the printf function to output this address.

Bitwise AND operator such as A & B; indicates bitwise and operation of binary values of A and B, such as 8 & 10, where the binary value of 8 is 0000 1000, the binary value of 10 is 0000 1010, so the result of 0000 1000 (decimal 8) & 0000 1010 (10 in decimal 10) is 0000 1000 (that is, 10 in decimal 8) therefore, if both numbers are true (OR 1), the result is true, if one of the two digits is false (or 0), the result is false.

Reproduced from: http://zhidao.baidu.com/link? Url = uRHTcffnOWTXUieP9sWQwHFwaX3TmLDfX9XYJ9A26N4h6nsQMKW7uFGmP-PqNUbA3UGHURtyXOHTl7 _-fhrzh _

 

& What is the operator ()

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.