algol68

Semantic differences in Algol and C in casting

守給你的承諾、 提交于 2021-02-11 08:11:54
问题 Suppose we have the following instructions in Algol 68 and C, respectively: ref int x := 5; and (int*) x = 5; . What are their semantic difference?, it's the same?, because I think that the second one says something like "x will point to a constant" (it can't be compiled) and the first one says "x will point to a memory cell that points to another memory cell that contains a constant, 5". Is it correct?, if not, can you explain it a bit and give some examples to understand this? 回答1: I don't

Semantic differences in Algol and C in casting

若如初见. 提交于 2021-02-11 08:11:04
问题 Suppose we have the following instructions in Algol 68 and C, respectively: ref int x := 5; and (int*) x = 5; . What are their semantic difference?, it's the same?, because I think that the second one says something like "x will point to a constant" (it can't be compiled) and the first one says "x will point to a memory cell that points to another memory cell that contains a constant, 5". Is it correct?, if not, can you explain it a bit and give some examples to understand this? 回答1: I don't

Semantic differences in Algol and C in casting

≡放荡痞女 提交于 2021-02-11 08:07:48
问题 Suppose we have the following instructions in Algol 68 and C, respectively: ref int x := 5; and (int*) x = 5; . What are their semantic difference?, it's the same?, because I think that the second one says something like "x will point to a constant" (it can't be compiled) and the first one says "x will point to a memory cell that points to another memory cell that contains a constant, 5". Is it correct?, if not, can you explain it a bit and give some examples to understand this? 回答1: I don't

Semantic differences in Algol and C in casting

﹥>﹥吖頭↗ 提交于 2021-02-11 08:07:31
问题 Suppose we have the following instructions in Algol 68 and C, respectively: ref int x := 5; and (int*) x = 5; . What are their semantic difference?, it's the same?, because I think that the second one says something like "x will point to a constant" (it can't be compiled) and the first one says "x will point to a memory cell that points to another memory cell that contains a constant, 5". Is it correct?, if not, can you explain it a bit and give some examples to understand this? 回答1: I don't