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's the difference between a muri-and-a?

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Today, I would like to talk to you about the difference between aMui-and-a, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following contents for you. I hope you can gain something according to this article.

"a color -" refers to first citing and then decreasing, first using the current value of an in the expression in which an is located, and then subtracting a by 1; "--a" is reducing and then quoting, making a minus 1, and then using the new value of an in the expression in which an is located.

The difference between aMui-and-- an is:

Amura-is to quote first and then reduce, first use the current value of an in the expression in which an is located, and then subtract a by 1

-An is reduced first and then referenced, so that an is minus 1, and then the new value of an is used in the expression in which an is located.

They all mean a=a-1, but they are executed in a different order when running in the program.

The difference between averse + and-- a:

First, the operation results are different

1. The result of the operation is the addition of a bit to the result of the an expression.

2.-- a: the result of the operation is the result of an expression minus one bit.

Second, the operation process is different

1. Axiomatic calculation: in the process of operation, the an expression is executed first, and then the self-increment operation is performed.

2.-- a: during the operation, the self-subtraction operation is performed first, and then the an expression is run.

Third, the memory runs differently

1. A memory: run an in memory first, then add 1 to the register.

2.-- a: the register in memory is subtracted by 1, and then the an expression is executed.

After reading the above, do you have any further understanding of the difference between a muri-and-a? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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