Home > Backend Development > C++ > In C language, what are Evaluation, Precedence and Association?

In C language, what are Evaluation, Precedence and Association?

WBOY
Release: 2023-09-03 21:49:05
forward
1227 people have browsed it

The "C" compiler evaluates expressions according to precedence and associativity rules.

If the expression contains operators of different precedence, precedence rules will be considered.

In C language, what are Evaluation, Precedence and Association?

Here, 10*2 is evaluated first because ' *' has higher priority than '- ' and '='

If expression Contains the same priority, the associativity rules are considered, that is, from left to right (or right to left).

In C language, what are Evaluation, Precedence and Association?

The above is the detailed content of In C language, what are Evaluation, Precedence and Association?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template