- Compatibility of the
increment operation with
another increment operation:
- Consider the
outcome of
INC1(A, c1);
INC2(A, c2)
- Consider the
outcome of
INC2(A, c2);
INC1(A, c1)
- The outcome are
identical !!!
Note:
- Although, the
increment operation
reads the
value of A,
it only uses it to
increment the value
- The increment operation does
not "pass" to
value that it read
further !!!
|
|
- Compatibility of the
increment operation with the
read operation:
- Consider the
outcome of
INC1(A, c1);
READ2(A)
- Consider the
outcome of
READ2(A);
INC1(A, c1)
- The outcome are
different !!!
|
- Compatibility of the
increment operation with the
write operation:
- Consider the
outcome of
INC1(A, c1);
WRITE2(A)
- Consider the
outcome of
WRITE2(A);
INC1(A, c1)
- The outcome are
different !!!
|
|