Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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: =, >, > =,

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report