Explanation of common symbols in C Language

Source: Internet
Author: User

1. # include <> Format: reference the standard library header file. The Compiler starts searching from the standard library directory;

2. # include "" Format: reference non-standard library header files. The Compiler starts searching from the user's working directory;

3. In C, the "^" symbol is a bitwise operation, XOR, or;

4. in C language, symbols & yes & representation and operations, for example, a & B indicate that a and B perform and operate;

5. What does the symbol mean in C language? For example, c = a-> B

A is a pointer to a struct or consortium.-> indicates that a Member is called.

6. in C language, the symbol "! = "And" = "mean? For example,! = B, a = 0

! = Indicates that the logic is not equal to the number and = indicates whether the result is equal:

For example:

Int a = 3, B = 4

A! = B, the value of a is not equal to the value of B, so! = B is correct

A = 0 is used to determine whether a is equal to 0. Obviously, it is not equal to 0, so it is false.

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.