Tracking updates to stored force readings

A test rig stores four signed force measurements as integer numbers of newtons. The following C statements update those stored values. Complete the table with the final force at each array index, entering exact integers in N.


C
int force_N[4] = {9, 14, 6, 11};

force_N[1] = force_N[0] + force_N[2];
force_N[3] -= force_N[1];
force_N[0] = force_N[3] + 2;
Array indexFinal force (N)
0
1
2
3

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More C Basics Questions: