Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the order of operator precedence from high to low in vb

Shulou Source: shulou.com Published: 2022-06-03 03:09:27 10月01日 Update

What is the order of operator precedence from high to low in vb? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

In VB, the priority of operation is from high to low: arithmetic operation, string operation, relational operation, logic operation. The priority decreases from top to bottom, with the highest priority at the top and the lowest priority for the comma operator. Operators with high priority are combined first, and operators with low priority are combined later, and operators on the same line have the same priority.

In VB, the priority of operation is from high to low: arithmetic operation, string operation, relational operation, logic operation.

The priority decreases from top to bottom, with the highest priority at the top and the lowest priority for the comma operator.

Operators with high priority are combined first, and operators with low priority are combined later, and operators on the same line have the same priority.

From high to low are:

Arithmetic operation:-(negative) ^ (power) * or /\ Mod (rounding) + or-

Character operator: + or & sibling

Relational operators: =, >, > =,

Tags: Operations precedence operators order Chinese characters strings arithmetic logic operators lowest highest same line content sibling operators methods more level Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information NVidia vpn Xiaomi Linux