CS152
Chris Pollett
Oct 25, 2021
begin a := if b < c then d else e; a := begin f(b); g(c) end; g(d); 2+3 end
if (a == b) { /* do the following if a equals b */ ... if (a = b) { /* assign b into a and then do the following if the result is nonzero */
A[index_fn(i)] = A[index_fn(i)] + 1;where the function index_fn has a side-effect which we don't want to execute twice.
b = a++; //add 1 to a but return original value of a; b = ++a; // same as a += 1; b =a;
a, b = c, d // equivalent to a=c; b=d;
Which of the following statements is true?
int a= 5;
f(a, g(b), h(c))
if (very_unlikely_condition && very_expensive_function()) ...
if (A .lt. B) goto 10 ... 10