Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
language:langs:chp [2023/04/07 08:20] rajit [Syntactic replication] |
language:langs:chp [2023/04/09 19:26] rajit [Conditional execution] |
||
---|---|---|---|
Line 86: | Line 86: | ||
In the published literature, non-deterministic selections are usually written using a thin bar '' | In the published literature, non-deterministic selections are usually written using a thin bar '' | ||
+ | |||
+ | ===== Arrays: dynamic v/s non-dynamic indices ===== | ||
+ | |||
+ | Suppose an array '' | ||
+ | <code act> | ||
+ | int x[10]; | ||
+ | </ | ||
+ | |||
+ | Now when '' | ||
+ | <code act> | ||
+ | chp { | ||
+ | ... | ||
+ | x[0] := x[0] + 1; | ||
+ | ... | ||
+ | } | ||
+ | </ | ||
+ | uses '' | ||
+ | <code act> | ||
+ | chp { | ||
+ | ... | ||
+ | x[i] := x[i] + 1; | ||
+ | ... | ||
+ | } | ||
+ | </ | ||
+ | uses '' | ||
+ | |||
===== Loops ===== | ===== Loops ===== |