C language operator's "priority oral franchise"

xiaoxiao2021-03-05  22

The following is my own summary about the mouth of C.

I hope to help comrades in the beginner C language language;

Of course, the premise of applying this hand is that you must know all C language operators.

Priority, parenthesis members first; // Brand bracket operator [] () member operator. -> All single-grade second; // All single operators such as - (positive) - (negative) pointer Operation * & Ride Yu three, add minus four; // This "余" means that the remaining operation is% shift five, the relationship 6; // shift operator: << >>, relationship:> <> = < = Wait for (and) the seventh; // 即 ==! = Bit and the same orientation or; // These are bit operation: bits and (&) different or (^) bits or ( | "Three-Ben World" 890; logic or follow-up; // logical operator: || and && twelve and eleven; // pay attention to the order: Priority (||) at the priority (&&) The condition is higher than that of assignment, // Triangular operator priority to 13 digits is only more than assignment operators and "" high // need to pay attention to a lot of assignment operators! The lowest comma-grade! // comma operator is the lowest

Since the C-language operator priority is not exactly the same as C (mainly adding several operators), this mouth cannot be fully practical for C . But it should be compatible, everyone can compare their differences should be very Master the priority of C !

转载请注明原文地址:https://www.9cbs.com/read-35584.html

New Post(0)