Page 1 of 1

(c) Write an appropriate C code snippet which captures the following situation: i. Create an array called myArray which

Posted: Thu May 05, 2022 1:15 pm
by answerhappygod
C Write An Appropriate C Code Snippet Which Captures The Following Situation I Create An Array Called Myarray Which 1
C Write An Appropriate C Code Snippet Which Captures The Following Situation I Create An Array Called Myarray Which 1 (42.37 KiB) Viewed 37 times
(c) Write an appropriate C code snippet which captures the following situation: i. Create an array called myArray which has 3 rows and 4 columns as shown below. ii. Assign the values 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21 and 25 to myArray using loops and calculate the sum of the values in the array. You may consider myArray to look like this: 1 3 5 7 9 13 15 17 21 25 [14 Marks] 11 19