Question: Mark1 and Mark2 below are one dimensional integer arrays. 0 1 N 3 3 4 5 Mark 1 50 56 66 78 80 65 0

 Mark1 and Mark2 below are one dimensional integer arrays. 0 1

Mark1 and Mark2 below are one dimensional integer arrays. 0 1 N 3 3 4 5 Mark 1 50 56 66 78 80 65 0 1 2 4 5 13 35 Mark2 90 88 45 77 52 (a) Write C programming statement(s) to declare and initialize the TWO (2) arrays above. [2 marks] (b) Write program statement(s) to sum up all the elements in Mark1. (5 marks) (c) Write program statements to SWAP the contents of subscript 4 of these two arrays. [3 marks]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!