吃牛肉不能吃什么| 血压低吃什么好| 血脂高吃什么食物| pu是什么皮| 榴莲为什么是水果之王| 什么时间量血压最准| 铄字五行属什么| 等闲识得东风面下一句是什么| 喝牛奶拉肚子是什么原因| 职业年金有什么用| nuxe是什么牌子护肤品| 非食健字是什么意思| 小孩子上户口需要什么证件| 青色是什么色| 妇科病是什么| 女人的网名叫什么好听| 平光镜是什么意思| 血钾高是什么引起的| 临床医学是什么| 指鹿为马的反义词是什么| 粉刺长什么样图片| 探病是什么意思| 胃囊肿是什么病严重吗| 精神科主要看什么病| 咳嗽白痰吃什么药| 尿酸高吃什么药降尿酸效果好| 悦人不如悦己什么意思| 员级职称是什么意思| 香草味是什么味道| 精神出轨是什么意思| 得糖尿病的原因是什么| ed是什么意思| 鸡全蛋粉是什么东西| ki是什么意思| 阴囊瘙痒用什么药膏| 什么食物含钾| 这是什么皮肤病| 畏寒怕冷是什么原因| 吃桃有什么好处| 女龙配什么属相最好| 急性扁桃体炎吃什么药| 早餐吃什么英语怎么说| 胃胀气吃什么食物| 脂肪瘤去医院挂什么科| 高锰酸钾有什么作用| 扬字五行属什么| 下午16点是什么时辰| 阿司匹林肠溶片什么时间吃最好| 腋下疼痛什么原因| 痔疮疼痛用什么药| 风热感冒用什么药好| 宽宏大度是什么生肖| 生理期什么意思| 尖锐湿疣是什么病| 什么叫ins风格| 头发属于什么组织| crp是什么意思| 什么颜色属土| 回归热是什么病| 明胶是什么东西| 男孩什么时辰出生最好| 梦见蛇是什么意思| 念珠菌性阴道炎用什么药| 特首是什么意思| 龙凤呈祥是什么生肖| 站着说话不腰疼是什么意思| 做四维需要准备什么| 月子中心是做什么的| eligible是什么意思| 一个人在家无聊可以做什么| 男性肛门瘙痒用什么药| 摸底是什么意思| nt是什么意思| 蜘蛛痣是什么原因引起的| 四月二十五是什么星座| 开火念什么| 殿后和垫后有什么区别| 燊什么意思| 双十一是什么节日| 常务副县长什么级别| 数字8五行属什么| ken是什么意思| 学生证件号码是什么| 梦见离家出走是什么意思| 马步鱼是什么鱼| 苯磺酸氨氯地平片什么时候吃最好| 孕妇拉的屎是黑色的是因为什么| 头痛用什么药好| 营业执照什么时候年审| 白术有什么作用| 瘘管是什么症状| 红豆是什么意思| 活碱是什么| 宝宝风寒感冒吃什么药最好| 蛇盘疮是什么症状| 肠炎是什么原因引起的| 中天是什么意思| 小松鼠吃什么食物| 魂牵梦绕的意思是什么| iv是什么意思| 为什么吃西瓜会拉肚子| rv是什么品牌| 做梦梦到牛是什么意思| 6月29号是什么星座| 副司长是什么级别| 梦见衣服是什么意思| 苛捐杂税是什么生肖| 药引子是什么意思| 大姨妈来了可以吃什么水果| 脚踝疼是什么原因| 分数值是什么意思| 生酮是什么意思| 丁克是什么意思| 小厮是什么意思| 小囊性灶是什么意思| 咖啡烘培度有什么区别| 斯凯奇鞋是什么档次| 蜜蜡脱毛有什么危害吗| 什么茶刮油| 乞巧节是什么节| 龟苓膏有什么功效| 内痔疮用什么药治最好效果最快| 八八年属什么生肖| 0mg是什么意思| 真丝乔其纱是什么面料| hoka是什么牌子| 蟑螂吃什么东西| 鸡飞狗跳是指什么生肖| 胃烧灼感是什么原因引起的| 肌肉痛吃什么药| 中性人是什么意思| py什么意思| 许久是什么意思| 宋五行属什么| sq是什么意思| 右后背疼是什么病| 地贫有什么症状| 什么是文字狱| 阴道炎吃什么消炎药| 会车是什么| 白细胞低吃什么| p医学代表什么意思| dady是什么意思| 戾气是什么意思| 天井是什么意思| 泡黄芪水喝有什么好处| 西门子洗衣机不脱水是什么原因| 中阴身是什么意思| 为什么会腰疼| 为什么会得丹毒| 百年好合是什么意思| 冠心病需要做什么检查| 孙策字什么| 蛇鼠一窝是什么意思| 经常拉稀是什么原因| 这句话是什么意思| 不举是什么意思| 安抚奶嘴什么时候戒掉| pd是什么金属| 什么叫空调病| 胆固醇是什么意思| 为什么喝茶会睡不着| 巽代表什么| 巨蟹座和什么座最配对| 青瓜和黄瓜有什么区别| 支气管炎有什么症状| 02年属什么| 腰椎骨质增生是什么意思| 鸡蛋补充什么营养| 希尔福是什么药| 查肾功能需要做什么检查| 九月28号是什么星座| 斑鸠幼鸟吃什么| 72岁属什么生肖| 唇炎属于什么科| 工会副主席是什么级别| 中位数是什么意思| 50年婚姻是什么婚| 异常灌注是什么意思| 女生胸部什么时候停止发育| 樵夫是什么意思| 冷敷眼睛有什么好处| 待产是什么意思| 2025年属什么| 胰腺炎不能吃什么食物| 嗓子发炎挂什么科| 眼睛变红了是什么原因| 澳大利亚属于什么洲| 做肺部ct挂什么科| 霍金得了什么病| 吃什么可以补血| 穿刺手术是什么意思| 瞬息万变什么意思| 促排药什么时候开始吃| 守夜是什么意思| 龙马精神代表什么生肖| 绿色加什么颜色是蓝色| 什么生肖怕老婆| 斋醮什么意思| 为什么会长闭口| 甲状腺挂什么科室| 12月2日什么星座| 菇凉是什么意思| 奚字五行属什么| 尿胆原normal是什么意思| 什么样的人| 黑脸娃娃有什么功效| 过敏了吃什么药| 6月18号是什么星座| 丑时是什么命| 老古董是什么意思| 奴役是什么意思| 区级以上医院是什么意思| 1987是什么年| 酸奶有什么营养价值| 女性什么时候最容易怀孕| 一物降一物指什么生肖| 镜面是什么意思| 湿气重吃什么药| 女人吃什么最补子宫| 圹是什么意思| 唐筛是检查什么的| 受益匪浅是什么意思| 7.12是什么星座| 三虫念什么| 羊下面是什么生肖| 三个鱼读什么| 转注是什么意思| 为什么当警察| 考生号是什么| 皮试是什么意思| 童话故事有什么| 公安厅长是什么级别| 吃什么可以增肥| 硫酸钠是什么| bu什么颜色| 容易做梦是什么原因引起的| 体脂是什么意思| 风心病是什么病| 心跳加快是什么病| 什么材质可以放微波炉加热| biubiubiu是什么意思| 眩晕挂什么科| 欧诗漫是个什么档次| hpv是什么| 瑜伽是什么意思| 什么的事物| 沉香有什么作用| 内涵是什么意思| 皮下出血小红点是什么原因造成的| 肠道紊乱有什么症状| 月子早餐吃什么好| spss是什么| 胃发热是什么原因| 什么节气开始凉快| 吹风扇感冒了吃什么药| 女频是什么| 解绑是什么意思| 瞌睡是什么意思| 鱼肝油又叫什么名字| store是什么| 壮阳是什么意思| 白羊座是什么性格| 丫丫的老公叫什么| 百度

深交所总经理工作报告:推动新三板向创业板转板试点

百度 通过走访、参观、座谈,听取人才心声,营造爱才敬才氛围,使他们深刻感受家乡发展变化,全面调动投身加快辽源创新转型发展实践的积极性和主动性。

In computer science and software programming, a value is the representation of some entity that can be manipulated by a program. The members of a type are the values of that type.[1]

The "value of a variable" is given by the corresponding mapping in the environment.[2] In languages with assignable variables, it becomes necessary to distinguish between the r-value (or contents) and the l-value (or location) of a variable.[3]

In declarative (high-level) languages, values have to be referentially transparent. This means that the resulting value is independent of the location of the expression needed to compute the value. Only the contents of the location (the bits, whether they are 1 or 0) and their interpretation are significant.[citation needed]

Value category

edit

Despite its name, in the C++ language standards this terminology is used to categorize expressions, not values.[4]:?8.2.1?

Assignment: l-values and r-values

edit

Some languages use the idea of l-values and r-values, deriving from the typical mode of evaluation on the left and right-hand side of an assignment statement. An l-value refers to an object that persists beyond a single expression. An r-value is a temporary value that does not persist beyond the expression that uses it.[5]

The notion of l-values and r-values was introduced by Combined Programming Language (CPL). The notions in an expression of r-value, l-value, and r-value/l-value are analogous to the parameter modes of input parameter (has a value), output parameter (can be assigned), and input/output parameter (has a value and can be assigned), though the technical details differ between contexts and languages.

R-values and addresses

edit

In many languages, notably the C family, l-values have storage addresses that are programmatically accessible to the running program (e.g., via some address-of operator like "&" in C/C++), meaning that they are variables or de-referenced references to a certain memory location. R-values can be l-values (see below) or non-l-values—a term only used to distinguish from l-values. Consider the C expression 4 + 9. When executed, the computer generates an integer value of 13, but because the program has not explicitly designated where in the computer this 13 is stored, the expression is a non l-value. On the other hand, if a C program declares a variable x and assigns the value of 13 to x, then the expression x has a value of 13 and is an l-value.

In C, the term l-value originally meant something that could be assigned to (hence the name, indicating it is on the left side of the assignment operator), but since the reserved word const (constant) was added to the language, the term is now 'modifiable l-value'. In C++11 a special semantic-glyph && exists ( not to be confused with the && operator used for logical operations ), to denote the use/access of the expression's address for the compiler only; i.e., the address cannot be retrieved using the address-of & operator during the run-time of the program (see the use of move semantics). The addition of move semantics complicated the value classification taxonomy by adding to it the concept of an xvalue (expiring value) which refers to an object near the end of its lifetime whose resources can be reused (typically by moving them). This also lead to the creation of the categories glvalue (generalized lvalue) which are lvalues and xvalues and prvalues (pure rvalues) which are rvalues that are not xvalues.[6]

This type of reference can be applied to all r-values including non-l-values as well as l-values. Some processors provide one or more instructions which take an immediate value, sometimes referred to as "immediate" for short. An immediate value is stored as part of the instruction which employs it, usually to load into, add to, or subtract from, a register. The other parts of the instruction are the opcode, and destination. The latter may be implicit. (A non-immediate value may reside in a register, or be stored elsewhere in memory, requiring the instruction to contain a direct or indirect address [e.g., index register address] to the value.)

The l-value expression designates (refers to) an object. A non-modifiable l-value is addressable, but not assignable. A modifiable l-value allows the designated object to be changed as well as examined. An r-value is any expression, a non-l-value is any expression that is not an l-value. One example is an "immediate value" (see above) and consequently not addressable.

In assembly language

edit

A value can be virtually any kind of data by a given data type, for instance a string, a digit, a single letter.

Processors often support more than one size of immediate data, e.g. 8 or 16 bit, employing a unique opcode and mnemonic for each instruction variant. If a programmer supplies a data value that will not fit, the assembler issues an "Out of range" error message. Most assemblers allow an immediate value to be expressed as ASCII, decimal, hexadecimal, octal, or binary data. Thus, the ASCII character 'A' is the same as 65 or 0x41. The byte order of strings may differ between processors, depending on the assembler and computer architecture.

Notes

edit
  1. ^ Mitchell 1996, p. 9.
  2. ^ Aho, Alfred V.; Lam, Monica S.; Sethi, Ravi; Ullman, Jeffrey D. (1986). Compilers: Principles, Techniques, and Tools. Addison-Wesley Publishing Company. ISBN 0-201-10088-6.
  3. ^ Mitchell 1996, pp. 389–390.
  4. ^ "ISO/IEC 14882:2017 Programming languages — C++". 2017.
  5. ^ "Lvalues and Rvalues (Visual C++)". Microsoft Developer Network. Retrieved 3 September 2016.
  6. ^ William M. Miller. "A Taxonomy of Expression Value Categories" (PDF).

References

edit
edit
甲亢是什么原因造成的 宫腔回声不均匀什么原因 慢悠悠的近义词是什么 胃反酸水是什么原因 青鹏软膏主要治疗什么
什么叫透析 小熊是什么牌子 tct是什么检查 痛风可以喝什么酒 什么时候种香菜
毓读什么 情人果是什么 梦见弟媳妇是什么预兆 老年斑长什么样 红茶有什么功效
手的皮肤黄是什么原因 1912年属什么生肖 做梦抓到很多鱼是什么征兆 经常呛咳是什么病的征兆 偏印代表什么
眼睛疲劳用什么眼药水好hcv8jop7ns4r.cn 气血不通吃什么药hcv7jop4ns5r.cn 一什么荷叶hcv9jop2ns1r.cn 炖牛肉放什么料hcv7jop9ns2r.cn 鬼迷心窍是什么生肖hcv9jop5ns2r.cn
颞下颌关节挂什么科hcv7jop6ns5r.cn 211是什么意思hcv8jop6ns5r.cn 什么应外合hcv7jop7ns2r.cn 慢性胃炎可以吃什么水果hcv7jop5ns3r.cn 金光是什么生肖hcv9jop4ns6r.cn
荔枝补什么hcv7jop9ns0r.cn 放风是什么意思hcv8jop3ns3r.cn 依波手表什么档次jasonfriends.com 泌尿科主要看什么病hcv8jop5ns2r.cn 2021年属什么hcv9jop5ns9r.cn
12月18号是什么星座520myf.com 嘴唇不红润是什么原因hcv8jop3ns0r.cn 樱桃泡酒有什么功效clwhiglsz.com 桃李满天下什么意思hcv8jop2ns2r.cn 11月9日什么星座hcv7jop5ns5r.cn
百度