Her er min kommenterede løsning på opgaven.#include <stdio.h>
int main(void) {
int v = 8, w = 5,
r, s;
r = v = w; // v is first assigned to the value of w (5).
// Next r is assigned to 5.
printf("r = %d, v = %d, w = %d\n", r, v, w); // 5, 5, 5
r = v + w; // r is assigned to the sum of v and w.
printf("r = %d, v = %d, w = %d\n", r, v, w); // 10, 5, 5
// r + v = w; // Illegal. r + w is not an illegal left hand side value.
// Commented out of the program.
r + (v = w); // v is assigned to the value of w.
// 5 and 10 is added together, but the value is lost.
printf("r = %d, v = %d, w = %d\n", r, v, w); // 10, 5, 5
return 0;
}